Code

frontend: Get the username of the remote peer from a UNIX socket.
[sysdb.git] / t / unit / utils / unixsock_test.c
index c28781ea051f815cd739fe3b4df23501904dbd00..82a1daf7b6986a4ae4746dcfd151947a6db39aa5 100644 (file)
@@ -30,7 +30,9 @@
 #endif /* HAVE_CONFIG_H */
 
 /* required for fopencookie support */
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+#      define _GNU_SOURCE
+#endif
 
 #include "utils/unixsock.h"
 #include "libsysdb_test.h"