clean up headers to reduce warnings about _GNU_SOURCE

This commit is contained in:
Russell Sears 2013-02-13 16:48:54 -08:00
parent 4886bbd090
commit 610096a965
15 changed files with 21 additions and 21 deletions

View file

@ -1,11 +1,7 @@
#define _GNU_SOURCE #include <config.h>
#include <stasis/common.h>
#include <stdio.h> #include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#include <stasis/util/lhtable.h> #include <stasis/util/lhtable.h>
#include <stasis/util/malloc.h>
#include <assert.h> #include <assert.h>
int entries; int entries;

View file

@ -1,3 +1,5 @@
#ifndef STASIS_CONFIG_H
#define STASIS_CONFIG_H
#define __USE_GNU #define __USE_GNU
#define _GNU_SOURCE #define _GNU_SOURCE
#cmakedefine HAVE_POSIX_FALLOCATE #cmakedefine HAVE_POSIX_FALLOCATE
@ -16,3 +18,4 @@
#cmakedefine DBUG #cmakedefine DBUG
#cmakedefine ON_LINUX #cmakedefine ON_LINUX
#cmakedefine ON_MACOS #cmakedefine ON_MACOS
#endif

View file

@ -1,4 +1,4 @@
#define _GNU_SOURCE #include <config.h>
#include <stdio.h> #include <stdio.h>
#include <stasis/transactional.h> #include <stasis/transactional.h>
#include <string.h> #include <string.h>

View file

@ -1,4 +1,4 @@
#define _GNU_SOURCE #define <config.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,4 +1,5 @@
#define _GNU_SOURCE #include <config.h>
#include <stasis/common.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

View file

@ -1,4 +1,5 @@
#define _GNU_SOURCE #include <config.h>
#include <stasis/common.h>
#include <sys/types.h> #include <sys/types.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,4 +1,6 @@
#define _GNU_SOURCE #include <config.h>
#include <stasis/common.h>
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>

View file

@ -39,7 +39,8 @@ authors grant the U.S. Government and others acting in its behalf
permission to use and distribute the software in accordance with the permission to use and distribute the software in accordance with the
terms specified in this license. terms specified in this license.
---*/ ---*/
#define _GNU_SOURCE // For asprintf #include <config.h>
#include <stasis/common.h>
#include <libdfa/libdfa.h> #include <libdfa/libdfa.h>
#include <unistd.h> #include <unistd.h>
#include <sys/wait.h> #include <sys/wait.h>

View file

@ -41,8 +41,7 @@ terms specified in this license.
---*/ ---*/
/*#include <sys/types.h> */ /*#include <sys/types.h> */
#define _GNU_SOURCE #include <config.h>
#include <stasis/common.h> #include <stasis/common.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/poll.h> #include <sys/poll.h>

View file

@ -1,5 +1,4 @@
#include <config.h> #include <config.h>
#define _GNU_SOURCE
#include <stasis/util/latches.h> #include <stasis/util/latches.h>
#include <stasis/transactional.h> #include <stasis/transactional.h>
#include <stasis/util/hash.h> #include <stasis/util/hash.h>

View file

@ -39,7 +39,7 @@ authors grant the U.S. Government and others acting in its behalf
permission to use and distribute the software in accordance with the permission to use and distribute the software in accordance with the
terms specified in this license. terms specified in this license.
---*/ ---*/
#define _GNU_SOURCE #include <config.h>
#include <string.h> #include <string.h>
#include "../../src/apps/cht/cht.h" #include "../../src/apps/cht/cht.h"
#include <assert.h> #include <assert.h>

View file

@ -46,7 +46,6 @@ permission to use and distribute the software in accordance with the
terms specified in this license. terms specified in this license.
---*/ ---*/
#define _GNU_SOURCE
#include "../check_includes.h" #include "../check_includes.h"
#include <stasis/util/concurrentHash.h> #include <stasis/util/concurrentHash.h>

View file

@ -40,7 +40,6 @@ permission to use and distribute the software in accordance with the
terms specified in this license. terms specified in this license.
---*/ ---*/
#define _GNU_SOURCE
#include "../check_includes.h" #include "../check_includes.h"
#include <stasis/util/lhtable.h> #include <stasis/util/lhtable.h>

View file

@ -1,4 +1,3 @@
#define _GNU_SOURCE
#include "../check_includes.h" #include "../check_includes.h"
#undef STLSEARCH #undef STLSEARCH

View file

@ -1,4 +1,5 @@
#define _GNU_SOURCE #include <config.h>
#include <stasis/common.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>