clean up headers to reduce warnings about _GNU_SOURCE
This commit is contained in:
parent
4886bbd090
commit
610096a965
15 changed files with 21 additions and 21 deletions
|
@ -1,11 +1,7 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <config.h>
|
||||
#include <stasis/common.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <pthread.h>
|
||||
#include <stasis/util/lhtable.h>
|
||||
#include <stasis/util/malloc.h>
|
||||
#include <assert.h>
|
||||
|
||||
int entries;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#ifndef STASIS_CONFIG_H
|
||||
#define STASIS_CONFIG_H
|
||||
#define __USE_GNU
|
||||
#define _GNU_SOURCE
|
||||
#cmakedefine HAVE_POSIX_FALLOCATE
|
||||
|
@ -15,4 +17,5 @@
|
|||
#cmakedefine HAVE_POWL
|
||||
#cmakedefine DBUG
|
||||
#cmakedefine ON_LINUX
|
||||
#cmakedefine ON_MACOS
|
||||
#cmakedefine ON_MACOS
|
||||
#endif
|
|
@ -1,4 +1,4 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <config.h>
|
||||
#include <stdio.h>
|
||||
#include <stasis/transactional.h>
|
||||
#include <string.h>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#define _GNU_SOURCE
|
||||
#define <config.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <config.h>
|
||||
#include <stasis/common.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <config.h>
|
||||
#include <stasis/common.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <config.h>
|
||||
#include <stasis/common.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
|
|
@ -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
|
||||
terms specified in this license.
|
||||
---*/
|
||||
#define _GNU_SOURCE // For asprintf
|
||||
#include <config.h>
|
||||
#include <stasis/common.h>
|
||||
#include <libdfa/libdfa.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/wait.h>
|
||||
|
|
|
@ -41,8 +41,7 @@ terms specified in this license.
|
|||
---*/
|
||||
/*#include <sys/types.h> */
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <config.h>
|
||||
#include <stasis/common.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/poll.h>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#include <config.h>
|
||||
#define _GNU_SOURCE
|
||||
#include <stasis/util/latches.h>
|
||||
#include <stasis/transactional.h>
|
||||
#include <stasis/util/hash.h>
|
||||
|
|
|
@ -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
|
||||
terms specified in this license.
|
||||
---*/
|
||||
#define _GNU_SOURCE
|
||||
#include <config.h>
|
||||
#include <string.h>
|
||||
#include "../../src/apps/cht/cht.h"
|
||||
#include <assert.h>
|
||||
|
|
|
@ -46,7 +46,6 @@ permission to use and distribute the software in accordance with the
|
|||
terms specified in this license.
|
||||
---*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include "../check_includes.h"
|
||||
|
||||
#include <stasis/util/concurrentHash.h>
|
||||
|
|
|
@ -40,7 +40,6 @@ permission to use and distribute the software in accordance with the
|
|||
terms specified in this license.
|
||||
---*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include "../check_includes.h"
|
||||
|
||||
#include <stasis/util/lhtable.h>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
#define _GNU_SOURCE
|
||||
#include "../check_includes.h"
|
||||
|
||||
#undef STLSEARCH
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#define _GNU_SOURCE
|
||||
#include <config.h>
|
||||
#include <stasis/common.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
|
Loading…
Reference in a new issue