Skip to content

Fix compilation error in GCC 14 #424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

OlekMazur
Copy link
Contributor

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 |

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 |
thom311 pushed a commit that referenced this pull request Mar 31, 2025
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
@thom311
Copy link
Owner

thom311 commented Mar 31, 2025

merged. Thank you!

@thom311 thom311 closed this Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants