summaryrefslogtreecommitdiffstats
path: root/sysdep/unix
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/unix')
-rw-r--r--sysdep/unix/unix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/unix/unix.h b/sysdep/unix/unix.h
index 4cced09..e3c9708 100644
--- a/sysdep/unix/unix.h
+++ b/sysdep/unix/unix.h
@@ -23,9 +23,11 @@ volatile int async_shutdown_flag;
#ifdef IPV6
#define BIRD_PF PF_INET6
+#define BIRD_AF AF_INET6
typedef struct sockaddr_in6 sockaddr;
#else
#define BIRD_PF PF_INET
+#define BIRD_AF AF_INET
typedef struct sockaddr_in sockaddr;
#endif