1
0
mirror of https://code.semirocket.science/wrapsix synced 2026-02-26 11:32:32 +02:00

Compiling as C89

This commit is contained in:
xHire
2017-10-28 08:45:51 +02:00
parent 24c3cdcf6f
commit 60efcc2c9c
4 changed files with 8 additions and 2 deletions

View File

@@ -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 */

View File

@@ -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,

View File

@@ -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 */