system.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. system.h -- system headers
  3. Copyright (C) 1998-2005 Ivo Timmermans
  4. 2003-2006 Guus Sliepen <guus@tinc-vpn.org>
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License along
  14. with this program; if not, write to the Free Software Foundation, Inc.,
  15. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  16. */
  17. #ifndef __TINC_SYSTEM_H__
  18. #define __TINC_SYSTEM_H__
  19. #include "config.h"
  20. #include "have.h"
  21. #ifndef HAVE_STDBOOL_H
  22. typedef int bool;
  23. #define true 1
  24. #define false 0
  25. #endif
  26. #ifndef HAVE_STRSIGNAL
  27. # define strsignal(p) ""
  28. #endif
  29. /* Other functions */
  30. #include "src/dropin.h"
  31. #ifndef HAVE_SOCKLEN_T
  32. typedef int socklen_t;
  33. #endif
  34. #endif /* __TINC_SYSTEM_H__ */