1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../udev/glibc-2.18.patch
5 # Copyright (C) 2011 - 2020 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Fix build w/ dietlibc, probably related to implicit glibc include hierarchy:
19 extras/ata_id/ata_id.o: In function `disk_identify_fixup_uint16':
20 ata_id.c:(.text+0xd1): undefined reference to `le16toh'
22 - Rene Rebe <rene@exactcode.de>
24 --- udev-147/src/ata_id/ata_id.c.vanilla 2011-01-05 19:15:42.000000000 +0100
25 +++ udev-147/src/ata_id/ata_id.c 2011-01-05 19:15:53.000000000 +0100
27 #include <linux/hdreg.h>
29 #include <arpa/inet.h>
33 #include "libudev-private.h"
34 --- udev-167/src/libudev-device-private.c.vanilla 2018-08-08 17:46:08.247860535 +0000
35 +++ udev-167/src/libudev-device-private.c 2018-08-08 17:46:34.963860133 +0000
40 +#include <sys/sysmacros.h>
43 #include "libudev-private.h"
44 --- udev-167/src/libudev-private.h.vanilla 2018-08-08 17:48:01.711858828 +0000
45 +++ udev-167/src/libudev-private.h 2018-08-08 17:48:06.659858754 +0000
50 +#include <sys/sysmacros.h>
54 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))