blob: bb8df3735debe8045b38561cd70549d79a2eaeeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Guard _LARGEFILE64_SOURCE define to avoid warning with append-lfs-flags
# https://bugs.gentoo.org/914505
diff --git a/hdparm.c b/hdparm.c
index eb9796b..a3204f9 100644
--- a/hdparm.c
+++ b/hdparm.c
@@ -4,7 +4,9 @@
*/
#define HDPARM_VERSION "v9.65"
+#ifndef _LARGEFILE64_SOURCE
#define _LARGEFILE64_SOURCE /*for lseek64*/
+#endif
#define _BSD_SOURCE /* for strtoll() */
#include <unistd.h>
#include <stdlib.h>
|