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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7210
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     1
Avoid triggering Solaris header bug 23506995 when an old XPG version is
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     2
requested in a C99 or later mode of the C compiler.
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     3
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     4
Need to figure out how best to submit upstream.
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     5
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     6
--- file-roller-3.16.4/src/fr-command-unarchiver.c
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     7
+++ file-roller-3.16.4/src/fr-command-unarchiver.c
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     8
@@ -20,8 +20,10 @@
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
     9
  */
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    10
 
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    11
 #include <config.h>
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    12
+#ifndef __sun
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    13
 #define _XOPEN_SOURCE       /* See feature_test_macros(7) */
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    14
 #define _XOPEN_SOURCE_EXTENDED 1  /* for strptime */
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    15
+#endif
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    16
 #include <time.h>
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    17
 #include <stdio.h>
66f170dce8c5 23245291 Move file-roller to Userland and update to 3.16.4
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
diff changeset
    18
 #include <stdlib.h>