mirror of
https://code.semirocket.science/wrapsix
synced 2026-02-26 11:32:32 +02:00
Compiling as C89
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define _POSIX_C_SOURCE 201112L
|
||||
|
||||
#include <arpa/inet.h> /* inet_pton */
|
||||
#include <ifaddrs.h> /* struct ifaddrs, getifaddrs, freeifaddrs */
|
||||
#include <netdb.h> /* getnameinfo, NI_NUMERICHOST */
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define _DEFAULT_SOURCE
|
||||
|
||||
#include <net/if.h> /* struct ifreq */
|
||||
#include <netinet/if_ether.h> /* {P,A}F_PACKET, ETH_P_*, socket, SOCK_RAW,
|
||||
* setsockopt, SOL_SOCKET, SO_BINDTODEVICE,
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define _DEFAULT_SOURCE
|
||||
|
||||
#include <arpa/inet.h> /* inet_pton */
|
||||
#include <linux/ethtool.h> /* struct ethtool_value */
|
||||
#include <linux/if_ether.h> /* ETH_P_ALL */
|
||||
|
||||
Reference in New Issue
Block a user