X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fdropin.h;h=d1919e1cc64bb280dcddc6856f29c3650f5c4946;hb=6debc6c79ba385d35f646e0958f84ace5b8f4b4d;hp=5033f90d90e9703407c5d64908b0431935c0b9b9;hpb=f6e87ab476a0faf8b124ecaaa27f967d825e6457;p=tinc diff --git a/src/dropin.h b/src/dropin.h index 5033f90d..d1919e1c 100644 --- a/src/dropin.h +++ b/src/dropin.h @@ -21,6 +21,8 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "system.h" + #ifndef HAVE_DAEMON extern int daemon(int, int); #endif @@ -67,4 +69,12 @@ extern int nanosleep(const struct timespec *req, struct timespec *rem); #define EAI_SYSTEM 0 #endif +#ifndef MIN +#define MIN(a,b) (((a)<(b))?(a):(b)) +#endif + +#ifndef MAX +#define MAX(a,b) (((a)>(b))?(a):(b)) +#endif + #endif