Whamcloud - gitweb
Cleanup compiler warnings.
authorgirish <girish>
Tue, 29 Jul 2008 16:23:36 +0000 (16:23 +0000)
committergirish <girish>
Tue, 29 Jul 2008 16:23:36 +0000 (16:23 +0000)
b=15981
i=adilger
i=robert.read

lnet/ulnds/socklnd/usocklnd.h
lnet/utils/debug.c

index 90640c7..678972c 100644 (file)
@@ -37,7 +37,9 @@
  *
  * Author: Maxim Patlasov <maxim@clusterfs.com>
  */
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 #include <pthread.h>
 #include <poll.h>
 #include <lnet/lib-lnet.h>
index d8b6b58..73d74d5 100644 (file)
@@ -39,7 +39,9 @@
  */
 
 #define __USE_FILE_OFFSET64
+#ifndef _GNU_SOURCE
 #define  _GNU_SOURCE
+#endif
 
 #include <stdio.h>
 #ifdef HAVE_NETDB_H