diff options
Diffstat (limited to 'socket')
-rw-r--r-- | socket/opensock.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/socket/opensock.c b/socket/opensock.c index ff94d27..3e35821 100644 --- a/socket/opensock.c +++ b/socket/opensock.c @@ -24,17 +24,10 @@ int __opensock (void) { - /* SOCK_DGRAM is supported by all address families. (Netlink does - not support SOCK_STREAM.) */ + /* SOCK_DGRAM is supported by all address families. */ int type = SOCK_DGRAM | SOCK_CLOEXEC; int fd; -#ifdef AF_NETLINK - fd = __socket (AF_NETLINK, type, 0); - if (fd >= 0) - return fd; -#endif - fd = __socket (AF_UNIX, type, 0); if (fd >= 0) return fd; |