mirror of
https://github.com/openwrt/packages.git
synced 2025-01-31 03:41:44 +00:00
ec619c0f3d
This fixes compilation problems with glibc 2.36. Full Changelog: hdparm-9.65: - Another --Istdin fix: cannot read log pages when no device specified hdparm-9.64: - fix truncated output buf with --Istdin hdparm-9.63: - new --sanitize-overwrite-passes flag, courtesy Michal Grzedzicki. - "Plurals patch" from Martin Guy. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
49 lines
1.1 KiB
Diff
49 lines
1.1 KiB
Diff
--- a/fibmap.c
|
|
+++ b/fibmap.c
|
|
@@ -17,6 +17,9 @@
|
|
#include <errno.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/stat.h>
|
|
+#ifndef __SANE_USERSPACE_TYPES__
|
|
+#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */
|
|
+#endif
|
|
#include <linux/types.h>
|
|
#include <linux/fs.h>
|
|
|
|
--- a/fwdownload.c
|
|
+++ b/fwdownload.c
|
|
@@ -14,6 +14,9 @@
|
|
#include <errno.h>
|
|
#include <sys/ioctl.h>
|
|
#include <sys/stat.h>
|
|
+#ifndef __SANE_USERSPACE_TYPES__
|
|
+#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */
|
|
+#endif
|
|
#include <linux/types.h>
|
|
#include <linux/fs.h>
|
|
#include <sys/mman.h>
|
|
--- a/hdparm.c
|
|
+++ b/hdparm.c
|
|
@@ -24,6 +24,9 @@
|
|
#include <sys/mount.h>
|
|
#include <sys/mman.h>
|
|
#include <sys/user.h>
|
|
+#ifndef __SANE_USERSPACE_TYPES__
|
|
+#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */
|
|
+#endif
|
|
#include <linux/types.h>
|
|
#ifndef FSCONFIG_SET_FLAG
|
|
#include <linux/fs.h>
|
|
--- a/identify.c
|
|
+++ b/identify.c
|
|
@@ -4,6 +4,9 @@
|
|
#include <stdlib.h>
|
|
#include <errno.h>
|
|
#include <string.h>
|
|
+#ifndef __SANE_USERSPACE_TYPES__
|
|
+#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */
|
|
+#endif
|
|
#include <linux/types.h>
|
|
#include <endian.h>
|
|
|