about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/include/nsss/grp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/nsss/grp.h b/src/include/nsss/grp.h
index e26ae05..8e16467 100644
--- a/src/include/nsss/grp.h
+++ b/src/include/nsss/grp.h
@@ -69,7 +69,7 @@ extern "C" {
    do not conflict with nsss operation.
  */
 
-#if defined(_GNU_SOURCE) || defined(_DEFAULT_SOURCE)
+#if defined(__GNU__) && (defined(_BSD_SOURCE) || defined(_DEFAULT_SOURCE))
 #include <sys/types.h>
 extern int setgroups (size_t, gid_t const *) ;
 extern int initgroups (char const *, gid_t) ;