xref: /haiku/src/system/libnetwork/netresolv/port_after.h (revision bb83316a5811a550c4f850d07fa8e328e7ac0a94)
1 #ifndef port_after_h
2 #define port_after_h
3 
4 #include <stdio.h>
5 #include <sys/types.h>
6 #include <sys/socket.h>
7 #include <sys/param.h>
8 #include <sys/time.h>
9 
10 #ifndef MIN
11 #define MIN(x,y) (((x) <= (y)) ? (x) : (y))
12 #endif
13 
14 #ifndef MAX
15 #define MAX(x,y) (((x) >= (y)) ? (x) : (y))
16 #endif
17 
18 #ifndef ALIGN
19 #define ALIGN(p) (((uintptr_t)(p) + (sizeof(long) - 1)) & ~(sizeof(long) - 1))
20 #endif
21 
22 #endif
23