Skip to content

Commit

Permalink
don't define _XOPEN_SOURCE for NetBSD
Browse files Browse the repository at this point in the history
on NetBSD, defining _XOPEN_SOURCE hides extensions
like inet_aton, strcasecmp, etc.
  • Loading branch information
yamt committed Jul 19, 2012
1 parent b62bdf1 commit ed3f412
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/fmacros.h
Expand Up @@ -5,7 +5,11 @@

#if defined(__linux__) || defined(__OpenBSD__)
#define _XOPEN_SOURCE 700
#else
/*
* On NetBSD, _XOPEN_SOURCE undefines _NETBSD_SOURCE and
* thus hides inet_aton etc.
*/
#elif !defined(__NetBSD__)
#define _XOPEN_SOURCE
#endif

Expand Down

0 comments on commit ed3f412

Please sign in to comment.