Commit c41fc7ac authored by Matt Selsky's avatar Matt Selsky
Browse files

Fix compiler warnings on Solaris in ntpfrob/main.c

../../ntpfrob/main.c: In function 'main':
../../ntpfrob/main.c:40:2: warning: implicit declaration of function 'getopt' [-Wimplicit-function-declaration]
  while ((ch = getopt(argc, argv, "a:Ab:cejp:rh?")) != EOF) {
  ^

Commit "Reduce clutter from ./waf -v" caused definitions like __EXTENSIONS__
and _POSIX_C_SOURCE to now only be defined in config.h, instead of being in the
command line passed to the compiler.

Therefore we must include config.h before including system headers to get the
correct feature macros to be set so that we get POSIX versions of functions and
symbols.
parent 394daf3d
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment