Christian Wiese
11 years ago
1 changed files with 43 additions and 0 deletions
@ -0,0 +1,43 @@
|
||||
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||
#
|
||||
# Filename: package/.../musl/pkg/ethtool/ethtool-use-stdint.patch
|
||||
# Copyright (C) 2014 The OpenSDE Project
|
||||
#
|
||||
# More information can be found in the files COPYING and README.
|
||||
#
|
||||
# This patch file is dual-licensed. It is available under the license the
|
||||
# patched project is licensed under, as long as it is an OpenSource license
|
||||
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||||
# of the GNU General Public License as published by the Free Software
|
||||
# Foundation; either version 2 of the License, or (at your option) any later
|
||||
# version.
|
||||
# --- SDE-COPYRIGHT-NOTE-END ---
|
||||
|
||||
use standard int types
|
||||
|
||||
--- a/internal.h
|
||||
+++ b/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"
|
Loading…
Reference in new issue