diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-08-23 18:52:43 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-08-23 18:52:43 +0000 |
commit | 191905cbc565ba1640af0a084d45086b9e2c6675 (patch) | |
tree | fd2ec625c54c39922e6fdecaf08ce9b7e108a8a9 /src | |
parent | 30f765118a4af3e35d2bc7a77c612fa57f942645 (diff) |
libdaemon stuff
git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@67 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 3 | ||||
-rw-r--r-- | src/dexec.c | 4 | ||||
-rw-r--r-- | src/dfork.c | 6 | ||||
-rw-r--r-- | src/dlog.c | 4 | ||||
-rw-r--r-- | src/dnonblock.c | 4 | ||||
-rw-r--r-- | src/dpid.c | 4 | ||||
-rw-r--r-- | src/dsignal.c | 4 |
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" @@ -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" @@ -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> |