diff --git a/lib/long-options.c b/lib/long-options.c index fe069fd..9553a31 100644 --- a/lib/long-options.c +++ b/lib/long-options.c @@ -22,6 +22,15 @@ #endif #include + +/* This needs to come after some library #include + to get __GNU_LIBRARY__ defined. */ +#ifdef __GNU_LIBRARY__ +/* Don't include stdlib.h for non-GNU C libraries because some of them + contain conflicting prototypes for getopt. */ +#include +#endif /* GNU C library. */ + #include #include "long-options.h"