aports/main/ethtool/stdint.patch
Natanael Copa 28fe8399ad main/ethtool: build fix for musl
use stdint's uint types instead of linux internals
2014-01-14 08:04:40 +00:00

26 lines
507 B
Diff

--- ./internal.h.orig
+++ ./internal.h
@@ -7,6 +7,7 @@
#include "ethtool-config.h"
#endif
#include <stdio.h>
+#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
@@ -23,10 +24,10 @@
#endif
typedef unsigned long long u64;
-typedef __uint32_t u32;
-typedef __uint16_t u16;
-typedef __uint8_t u8;
-typedef __int32_t s32;
+typedef uint32_t u32;
+typedef uint16_t u16;
+typedef uint8_t u8;
+typedef int32_t s32;
#include "ethtool-copy.h"
#include "net_tstamp-copy.h"