dropin.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef TINC_DROPIN_H
  2. #define TINC_DROPIN_H
  3. /*
  4. dropin.h -- header file for dropin.c
  5. Copyright (C) 2000-2005 Ivo Timmermans,
  6. 2000-2011 Guus Sliepen <guus@tinc-vpn.org>
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU General Public License for more details.
  15. You should have received a copy of the GNU General Public License along
  16. with this program; if not, write to the Free Software Foundation, Inc.,
  17. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  18. */
  19. #include "fake-getaddrinfo.h"
  20. #include "fake-getnameinfo.h"
  21. #ifndef HAVE_DAEMON
  22. extern int daemon(int nochdir, int noclose);
  23. #endif
  24. #ifndef HAVE_GET_CURRENT_DIR_NAME
  25. extern char *get_current_dir_name(void);
  26. #endif
  27. #ifndef HAVE_ASPRINTF
  28. extern int asprintf(char **buf, const char *fmt, ...);
  29. extern int vasprintf(char **buf, const char *fmt, va_list ap);
  30. #endif
  31. #ifndef HAVE_GETTIMEOFDAY
  32. extern int gettimeofday(struct timeval *tv, void *tz);
  33. #endif
  34. #ifndef HAVE_USLEEP
  35. extern int usleep(long long usec);
  36. #endif
  37. #endif