aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBrendan Taylor <whateley@gmail.com>2012-04-22 11:07:56 -0600
committerBrendan Taylor <whateley@gmail.com>2012-04-22 11:07:56 -0600
commit9d6c51053ec466b286b40f1852b207ea81fffdbb (patch)
treec7984b4112404c59005ed5278c496141366c50c3
parent1e83beb108fb442ae87e41fbf1abe5bb7f8b739a (diff)
move _POSIX_SOURCE define into Makefile for consistency
-rw-r--r--Makefile2
-rw-r--r--src/io.c2
-rw-r--r--src/util.c2
-rw-r--r--src/uzbl-core.h2
4 files changed, 1 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index eef6ff7..1df667b 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ ARCH:=$(shell uname -m)
COMMIT_HASH:=$(shell ./misc/hash.sh)
-CPPFLAGS += -D_BSD_SOURCE -DARCH=\"$(ARCH)\" -DCOMMIT=\"$(COMMIT_HASH)\"
+CPPFLAGS += -D_BSD_SOURCE -D_POSIX_SOURCE -DARCH=\"$(ARCH)\" -DCOMMIT=\"$(COMMIT_HASH)\"
PKG_CFLAGS:=$(shell pkg-config --cflags $(REQ_PKGS))
diff --git a/src/io.c b/src/io.c
index b81b814..ff418ef 100644
--- a/src/io.c
+++ b/src/io.c
@@ -1,5 +1,3 @@
-#define _POSIX_SOURCE
-
#include <stdio.h>
#include "events.h"
diff --git a/src/util.c b/src/util.c
index eab176a..6a5806e 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1,5 +1,3 @@
-#define _POSIX_SOURCE
-
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
diff --git a/src/uzbl-core.h b/src/uzbl-core.h
index 84ccfa0..1f9613e 100644
--- a/src/uzbl-core.h
+++ b/src/uzbl-core.h
@@ -13,8 +13,6 @@
#ifndef __UZBL_CORE__
#define __UZBL_CORE__
-#define _POSIX_SOURCE
-
#include <glib/gstdio.h>
#include <gtk/gtk.h>
#include <gdk/gdkx.h>