summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-misc.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-06-25 14:03:34 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-06-25 14:03:34 +1000
commit60bd4098f64fd0fbbd9b6b4de2562623318141a0 (patch)
tree7dc6caa88aa1c03ed6a760855c48f24a0c5570cb /openbsd-compat/bsd-misc.h
parentef3b47a73adf98a510200daea9ebfceebed5bed6 (diff)
- (dtucker) [configure.ac openbsd-compat/misc.c [openbsd-compat/misc.h]
Add closefrom() for platforms that don't have it. (might need some tuning later, but I want to be able to test reexec).
Diffstat (limited to 'openbsd-compat/bsd-misc.h')
-rw-r--r--openbsd-compat/bsd-misc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/openbsd-compat/bsd-misc.h b/openbsd-compat/bsd-misc.h
index 009739b1..7027815d 100644
--- a/openbsd-compat/bsd-misc.h
+++ b/openbsd-compat/bsd-misc.h
@@ -1,4 +1,4 @@
-/* $Id: bsd-misc.h,v 1.15 2004/03/08 11:59:03 dtucker Exp $ */
+/* $Id: bsd-misc.h,v 1.16 2004/06/25 04:03:34 dtucker Exp $ */
/*
* Copyright (c) 1999-2004 Damien Miller <djm@mindrot.org>
@@ -93,6 +93,10 @@ int tcsendbreak(int, int);
void unsetenv(const char *);
#endif
+#ifndef HAVE_CLOSEFROM
+int closefrom(int);
+#endif
+
/* wrapper for signal interface */
typedef void (*mysig_t)(int);
mysig_t mysignal(int sig, mysig_t act);