From 191905cbc565ba1640af0a084d45086b9e2c6675 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 23 Aug 2004 18:52:43 +0000 Subject: libdaemon stuff git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@67 153bfa13-eec0-0310-be40-b0cb6a0e1b4b --- src/Makefile.am | 3 ++- src/dexec.c | 4 ++++ src/dfork.c | 6 ++++++ src/dlog.c | 4 ++++ src/dnonblock.c | 4 ++++ src/dpid.c | 4 ++++ src/dsignal.c | 4 +++- 7 files changed, 27 insertions(+), 2 deletions(-) (limited to 'src') 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 +#endif + #include #include #include 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 +#endif + #include #include #include @@ -29,6 +33,8 @@ #include #include #include +#include +#include #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 +#endif + #include #include #include 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 +#endif + #include #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 +#endif + #include #include #include 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 +#endif #include #include -- cgit