mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-30 15:33:24 -04:00
25 lines
691 B
C
25 lines
691 B
C
$NetBSD: patch-largefile.h,v 1.1 2014/01/08 11:54:04 hauke Exp $
|
|
|
|
--- largefile.h.orig 2010-12-13 03:42:49.000000000 +0000
|
|
+++ largefile.h
|
|
@@ -18,3 +18,19 @@
|
|
#define strtoofft(x,y,z) (strtol((x),(y),(z)))
|
|
#define PRIofft "l"
|
|
#endif
|
|
+
|
|
+#ifndef SIZEOF_TIME_T
|
|
+#error "sizeof time_t unknown."
|
|
+#endif
|
|
+
|
|
+#if SIZEOF_TIME_T == 8
|
|
+ #ifdef HAVE_STRTOLL
|
|
+ #define strtotimet(x,y,z) (strtoll((x),(y),(z)))
|
|
+ #else /* !HAVE_STRTOLL */
|
|
+ #define strtotimet(x,y,z) (strtol((x),(y),(z)))
|
|
+ #endif /* HAVE_STRTOLL */
|
|
+ #define PRItimet "ll"
|
|
+#else /* SIZEOF_TIME_T != 8 */
|
|
+ #define strtotimet(x,y,z) (strtol((x),(y),(z)))
|
|
+ #define PRItimet "l"
|
|
+#endif /* SIZEOF_TIME_T */
|