components/gnome/file-roller/patches/01-avoid_XOPEN_SOURCE.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 7210 66f170dce8c5
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers

Avoid triggering Solaris header bug 23506995 when an old XPG version is
requested in a C99 or later mode of the C compiler.

Need to figure out how best to submit upstream.

--- file-roller-3.16.4/src/fr-command-unarchiver.c
+++ file-roller-3.16.4/src/fr-command-unarchiver.c
@@ -20,8 +20,10 @@
  */
 
 #include <config.h>
+#ifndef __sun
 #define _XOPEN_SOURCE       /* See feature_test_macros(7) */
 #define _XOPEN_SOURCE_EXTENDED 1  /* for strptime */
+#endif
 #include <time.h>
 #include <stdio.h>
 #include <stdlib.h>