<linux/netlink.h> is available since Linux 2.6.15 (commit
v2.6.15-rc1~53^2).
* configure.ac (AC_CHECK_HEADERS): Remove linux/genetlink.h.
* socketutils.c [!HAVE_LINUX_GENETLINK_H]: Remove.
* tests/netlink_generic.c [!HAVE_LINUX_GENETLINK_H]: Likewise.
linux/falloc.h
linux/fib_rules.h
linux/fiemap.h
- linux/genetlink.h
linux/hiddev.h
linux/if_addr.h
linux/if_link.h
#include <linux/unix_diag.h>
#include <linux/netlink_diag.h>
#include <linux/rtnetlink.h>
-#if HAVE_LINUX_GENETLINK_H
#include <linux/genetlink.h>
-#endif
#include <sys/un.h>
#ifndef UNIX_PATH_MAX
getfdproto(tcp, fd));
}
-#ifdef HAVE_LINUX_GENETLINK_H
/*
* Managing the cache for decoding communications of Netlink GENERIC protocol
*
out:
return dyxlat_get(dyxlat);
}
-
-#else /* !HAVE_LINUX_GENETLINK_H */
-
-const struct xlat *
-genl_families_xlat(struct tcb *tcp)
-{
- return NULL;
-}
-#endif
#include "tests.h"
-#ifdef HAVE_LINUX_GENETLINK_H
-
-# include <stdio.h>
-# include <string.h>
-# include <unistd.h>
-# include <sys/socket.h>
-# include "netlink.h"
-# include <linux/genetlink.h>
+#include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <sys/socket.h>
+#include "netlink.h"
+#include <linux/genetlink.h>
static void
test_nlmsg_type(const int fd)
return 0;
}
-
-#else
-
-SKIP_MAIN_UNDEFINED("HAVE_LINUX_GENETLINK_H")
-
-#endif