summaryrefslogtreecommitdiffstats
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2012-02-29 22:12:16 +0200
committerDavid Sommerseth <davids@redhat.com>2012-03-22 22:53:39 +0100
commit7b49c16761b4a11f1f0846cd46bd7194392efbfa (patch)
treef0f639062196120b8dd4a0a977e68f9fe3d4dea5 /src/compat/compat.h
parent3d163bc544ab9dfc62d9a2c865f8abb865bf6eb3 (diff)
downloadopenvpn-7b49c16761b4a11f1f0846cd46bd7194392efbfa.tar.gz
openvpn-7b49c16761b4a11f1f0846cd46bd7194392efbfa.tar.xz
openvpn-7b49c16761b4a11f1f0846cd46bd7194392efbfa.zip
build: move daemon() emulation into compat
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> Acked-by: Samuli Seppänen <samuli@openvpn.net> Acked-by: David Sommerseth <davids@redhat.com> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r--src/compat/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 3f9ac31..e9d51b8 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -46,4 +46,8 @@ char * basename(char *str);
int gettimeofday (struct timeval *tv, void *tz);
#endif
+#ifndef HAVE_DAEMON
+int daemon(int nochdir, int noclose);
+#endif
+
#endif /* COMPAT_H */