Skip to content

Commit f278e59

Browse files
OlekMazurthom311
authored andcommitted
Fix compilation error in GCC 14
lib/socket.c: In function '_badrandom_from_time': lib/socket.c:70:13: error: implicit declaration of function 'time' [-Wimplicit-function-declaration] 70 | t = time(NULL); | ^~~~ lib/socket.c:39:1: note: 'time' is defined in header '<time.h>'; this is probably fixable by adding '#include <time.h>' 38 | #include "nl-aux-core/nl-core.h" +++ |+#include <time.h> 39 | #424
1 parent dd0889f commit f278e59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/socket.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#include "nl-default.h"
2525

26+
#include <time.h>
2627
#include <fcntl.h>
2728
#include <limits.h>
2829
#include <sys/socket.h>

0 commit comments

Comments
 (0)