[Asterisk-code-review] netsock.c: fix includes for HURD (asterisk[14])

George Joseph asteriskteam at digium.com
Tue Nov 1 12:28:45 CDT 2016


George Joseph has uploaded a new change for review. ( https://gerrit.asterisk.org/4264 )

Change subject: netsock.c: fix includes for HURD
......................................................................

netsock.c: fix includes for HURD

ASTERISK-25070

Change-Id: I43bf94d2d36d3d8a8d0df40cd6c027d65a462814
(cherry picked from commit ed08811e64722b266f6c09ad131e316928db9f3c)
---
M main/netsock.c
1 file changed, 1 insertion(+), 3 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/64/4264/1

diff --git a/main/netsock.c b/main/netsock.c
index 568add4..91f7e73 100644
--- a/main/netsock.c
+++ b/main/netsock.c
@@ -31,9 +31,7 @@
 
 #include "asterisk.h"
 
-ASTERISK_REGISTER_FILE()
-
-#ifndef __linux__
+#if !defined (__linux__) && !defined (__GNU__)
 #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__Darwin__) || defined(__GLIBC__)
 #include <net/if_dl.h>
 #endif

-- 
To view, visit https://gerrit.asterisk.org/4264
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I43bf94d2d36d3d8a8d0df40cd6c027d65a462814
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Tzafrir Cohen <tzafrir.cohen at xorcom.com>



More information about the asterisk-code-review mailing list