Must include netinet/in.h before netinet/ip.h or bad things happen.
authorclaudio <claudio@openbsd.org>
Tue, 2 Mar 2021 17:39:26 +0000 (17:39 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 2 Mar 2021 17:39:26 +0000 (17:39 +0000)
sbin/dhcpleased/frontend.c

index 7f964e0..0c5010f 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: frontend.c,v 1.1 2021/02/26 16:16:37 florian Exp $    */
+/*     $OpenBSD: frontend.c,v 1.2 2021/03/02 17:39:26 claudio Exp $    */
 
 /*
  * Copyright (c) 2017, 2021 Florian Obser <florian@openbsd.org>
 #include <net/if_types.h>
 #include <net/route.h>
 
+#include <netinet/in.h>
+#include <netinet/if_ether.h>
 #include <netinet/ip.h>
 #include <netinet/udp.h>
 
 #include <arpa/inet.h>
 
-#include <netinet/in.h>
-#include <netinet/if_ether.h>
-
 #include <errno.h>
 #include <event.h>
 #include <ifaddrs.h>