projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dropin.c/h contain a set of drop-in replacements for non-standard C
[tinc]
/
lib
/
dropin.c
diff --git
a/lib/daemon.c
b/lib/dropin.c
similarity index 89%
rename from
lib/daemon.c
rename to
lib/dropin.c
index
f12599f
..
faa2314
100644
(file)
--- a/
lib/daemon.c
+++ b/
lib/dropin.c
@@
-1,5
+1,5
@@
/*
/*
- d
aemon.c -- replacement daemon() for platforms that do not have it
+ d
ropin.c -- a set of drop-in replacements for libc functions
Copyright (C) 2000 Ivo Timmermans <itimmermans@bigfoot.com>,
2000 Guus Sliepen <guus@sliepen.warande.net>
Copyright (C) 2000 Ivo Timmermans <itimmermans@bigfoot.com>,
2000 Guus Sliepen <guus@sliepen.warande.net>
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: d
aemon.c,v 1.1.2.1 2000/11/24 23:30:50 guus
Exp $
+ $Id: d
ropin.c,v 1.1.2.1 2000/11/28 23:23:41 zarq
Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-86,3
+86,16
@@
int daemon(int nochdir, int noclose)
}
}
#endif
}
}
#endif
+
+
+
+
+
+#ifndef HAVE_GET_CURRENT_DIR_NAME
+
+char *get_current_dir_name(void)
+{
+ return ".";
+}
+
+#endif