ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] Compilation error 2

From: Anders Broman <anders.broman@xxxxxxxxxxxx>
Date: Thu, 21 Apr 2011 15:10:43 +0200
Hi,
gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
 
tempfile.c: In function `create_tempfile':
tempfile.c:197: warning: implicit declaration of function `time'
tempfile.c:198: warning: implicit declaration of function `strftime'
tempfile.c:198: warning: implicit declaration of function `localtime'
tempfile.c:198: warning: passing arg 4 of `strftime' makes pointer from integer without a cast
make[2]: *** [wireshark-tempfile.o] Error 1
 
Including time.h solves the problem, should that be added? Why is this turning up now, for this compiler?
 
Regards
Anders