summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-08-23 18:52:43 +0000
committerLennart Poettering <lennart@poettering.net>2004-08-23 18:52:43 +0000
commit191905cbc565ba1640af0a084d45086b9e2c6675 (patch)
treefd2ec625c54c39922e6fdecaf08ce9b7e108a8a9
parent30f765118a4af3e35d2bc7a77c612fa57f942645 (diff)
libdaemon stuff
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@67 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
-rw-r--r--src/Makefile.am3
-rw-r--r--src/dexec.c4
-rw-r--r--src/dfork.c6
-rw-r--r--src/dlog.c4
-rw-r--r--src/dnonblock.c4
-rw-r--r--src/dpid.c4
-rw-r--r--src/dsignal.c4
7 files changed, 27 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index cef803e..a4bebbd 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -16,6 +16,8 @@
# along with libdaemon; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+AM_CFLAGS=-D_GNU_SOURCE
+
pkginclude_HEADERS = dlog.h dfork.h dsignal.h dnonblock.h dpid.h dexec.h daemon.h
lib_LTLIBRARIES = libdaemon.la
@@ -28,5 +30,4 @@ libdaemon_la_SOURCES = \
dpid.c dpid.h \
dexec.c dexec.h \
daemon.h
-
libdaemon_la_LDFLAGS = -version-info 2:0:2
diff --git a/src/dexec.c b/src/dexec.c
index dba0fc1..e1d1910 100644
--- a/src/dexec.c
+++ b/src/dexec.c
@@ -18,6 +18,10 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
diff --git a/src/dfork.c b/src/dfork.c
index b9794d1..b795dc6 100644
--- a/src/dfork.c
+++ b/src/dfork.c
@@ -18,6 +18,10 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
@@ -29,6 +33,8 @@
#include <sys/wait.h>
#include <assert.h>
#include <sys/ioctl.h>
+#include <signal.h>
+#include <sys/time.h>
#include "dfork.h"
#include "dnonblock.h"
diff --git a/src/dlog.c b/src/dlog.c
index 36ce5dc..05967e8 100644
--- a/src/dlog.c
+++ b/src/dlog.c
@@ -16,6 +16,10 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
diff --git a/src/dnonblock.c b/src/dnonblock.c
index af24be2..a5e6073 100644
--- a/src/dnonblock.c
+++ b/src/dnonblock.c
@@ -16,6 +16,10 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <fcntl.h>
#include "dnonblock.h"
diff --git a/src/dpid.c b/src/dpid.c
index 6731573..b802b71 100644
--- a/src/dpid.c
+++ b/src/dpid.c
@@ -16,6 +16,10 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/dsignal.c b/src/dsignal.c
index 3df2733..0eb11a2 100644
--- a/src/dsignal.c
+++ b/src/dsignal.c
@@ -16,7 +16,9 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#define _GNU_SOURCE
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <fcntl.h>
#include <unistd.h>