void-packages/srcpkgs/caja/patches/cross-strftime.patch
2019-04-30 15:12:10 +02:00

27 lines
942 B
Diff

--- configure.ac 2019-02-24 16:19:09.000000000 +0100
+++ configure.ac 2019-04-30 01:25:54.026742335 +0200
@@ -261,22 +261,8 @@
dnl ===========================================================================
-dnl strftime checks
-
-AC_TRY_RUN([#include <time.h>
- int main ()
- {
- char buf[100];
- struct tm tm = {0};
- tm.tm_year = 99;
- if (strftime(buf, 100, "%EY", &tm) == 4 &&
- strcmp (buf, "1999")==0)
- return 0;
- return 1;
- }
- ],
- AC_DEFINE(HAVE_STRFTIME_EXTENSION, 1, [Define if strftime supports %E and %O modifiers.])
-)
+dnl Void strftime(3) supports %E and %O
+AC_DEFINE(HAVE_STRFTIME_EXTENSION, 1, [Define if strftime supports %E and %O modifiers.])
dnl ==========================================================================