]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ntp_io.c:
authorFrank Kardel <kardel@ntp.org>
Sun, 28 Aug 2005 07:37:24 +0000 (07:37 +0000)
committerFrank Kardel <kardel@ntp.org>
Sun, 28 Aug 2005 07:37:24 +0000 (07:37 +0000)
  add FreeBSD for routing socket notification

bk: 431169b4Yh-L1Jvw1vakBp_lKH_dXQ

ntpd/ntp_io.c

index 322fd30decd51b6fb0c254a6171838b758b0ffc2..26a3be48d2b879f881f511664cae869f68462836 100644 (file)
@@ -3258,7 +3258,7 @@ find_flagged_addr_in_list(struct sockaddr_storage *addr, int flag) {
        return NULL; /* Not found */
 }
 
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__FreeBSD__)
 #include <net/route.h>
 
 static void
@@ -3326,7 +3326,9 @@ init_async_notifications()
        
        if (fd >= 0) {
                init_nonblocking_io(fd);
+#if defined(HAVE_SIGNALED_IO)
                init_socket_sig(fd);
+#endif /* HAVE_SIGNALED_IO */
                
                reader = new_asyncio_reader();