summaryrefslogtreecommitdiff
path: root/sysutils/radmind/files/patch-largefile.h
diff options
context:
space:
mode:
authorThomas Zander <riggs@FreeBSD.org>2014-07-12 09:31:02 +0000
committerThomas Zander <riggs@FreeBSD.org>2014-07-12 09:31:02 +0000
commit79c08ab7c54152025d78974d8c962d0e7a2217df (patch)
tree2639005826cf8a7dfb7ed3fb124c9f5c11bd2e5d /sysutils/radmind/files/patch-largefile.h
parent- Stagify (diff)
- Update to new revision 2014052201
- Stagify - Add LICENSE* - Remove IGNORE_TIMESTAMPS option - Handle file ownerships via pkg-plist macros - Silence superfluous warnings - Handle stripping of installed binaries - Pet portlint PR: 190120 Submitted by: mikeg@bsd-box.net (maintainer) Reviewed by: riggs Approved by: mentors (implicit), maintainer (timeout)
Diffstat (limited to 'sysutils/radmind/files/patch-largefile.h')
-rw-r--r--sysutils/radmind/files/patch-largefile.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysutils/radmind/files/patch-largefile.h b/sysutils/radmind/files/patch-largefile.h
new file mode 100644
index 000000000000..5d5654934a28
--- /dev/null
+++ b/sysutils/radmind/files/patch-largefile.h
@@ -0,0 +1,18 @@
+--- ./largefile.h.orig 2010-12-13 04:42:49.000000000 +0100
++++ ./largefile.h 2014-06-29 12:15:04.246544121 +0200
+@@ -18,3 +18,15 @@
+ #define strtoofft(x,y,z) (strtol((x),(y),(z)))
+ #define PRIofft "l"
+ #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 */