Permalink
Browse files

Revert "make: add _XOPEN_SOURCE to headers and .c"

This reverts commit 4c2b1bd.
  • Loading branch information...
1 parent 4c2b1bd commit 2fef656ed37856d1e9a36fcae3a11dd99a4d37c4 @indutny committed Jan 28, 2012
Showing with 1 addition and 8 deletions.
  1. +1 −0 Makefile
  2. +0 −2 include/private/threads.h
  3. +0 −2 src/threads.c
  4. +0 −4 src/writer.c
View
@@ -6,6 +6,7 @@
CSTDFLAG = --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter
CPPFLAGS += -fPIC -Iinclude -Ideps/snappy
CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+CPPFLAGS += -D_XOPEN_SOURCE=500
ifeq ($(ARCH),i386)
CPPFLAGS += -arch i386
@@ -5,9 +5,7 @@
extern "C" {
#endif
-#define _XOPEN_SOURCE 500
#include <pthread.h>
-#undef _XOPEN_SOURCE
typedef pthread_mutex_t bp__mutex_t;
typedef pthread_rwlock_t bp__rwlock_t;
View
@@ -1,8 +1,6 @@
#include "private/threads.h"
#include "private/errors.h"
-#define _XOPEN_SOURCE 500
#include <pthread.h>
-#undef _XOPEN_SOURCE
#include <stdlib.h>
View
@@ -4,11 +4,7 @@
#include "private/threads.h"
#include <fcntl.h> /* open */
-
-/* for pread */
-#define _XOPEN_SOURCE 500
#include <unistd.h> /* close, write, read */
-#undef _XOPEN_SOURCE
#include <sys/stat.h> /* S_IWUSR, S_IRUSR */
#include <stdlib.h> /* malloc, free */
#include <stdio.h> /* sprintf */

0 comments on commit 2fef656

Please sign in to comment.