34a5dc1e28
OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=3e128ea1dfe1f438c5c539850885a0ad
22 lines
583 B
Diff
22 lines
583 B
Diff
diff --git a/common/socket.c b/common/socket.c
|
|
index 036f7ae..6f56740 100644
|
|
--- a/common/socket.c
|
|
+++ b/common/socket.c
|
|
@@ -40,11 +40,16 @@
|
|
* I have implemented it under Linux; other systems should be doable also.
|
|
*/
|
|
|
|
+#ifndef _GNU_SOURCE
|
|
+#define _GNU_SOURCE
|
|
+#endif
|
|
#include "dhcpd.h"
|
|
#include <errno.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/uio.h>
|
|
#include <sys/uio.h>
|
|
+#include <netinet/in.h> /* for struct in6_pktinfo, with glibc >= 2.10.1
|
|
+ _GNU_SOURCE required to enable it */
|
|
|
|
#ifdef USE_SOCKET_FALLBACK
|
|
# if !defined (USE_SOCKET_SEND)
|