diff options
author | gavan <gavan> | 2004-10-13 17:14:36 +0000 |
---|---|---|
committer | gavan <gavan> | 2004-10-13 17:14:36 +0000 |
commit | 5e63c05497c5680507c5965a573af924b0ced870 (patch) | |
tree | 42821dfff19461a0a13e1adfd1501bd34b6efbea /devel/gettext/patches | |
parent | 51a9430bcafb044752c39034d26355a5a3218f01 (diff) | |
download | pkgsrc-5e63c05497c5680507c5965a573af924b0ced870.tar.gz |
Workaround build problem on Solaris 10.
If HAVE_POSIX_SPAWN is defined, code is compiled in that requires environ
to be declared. Solaris doesn't declare environ, so declare it (guarded by
HAVE_ENVIRON_DECL) in the files in which it is used.
Solaris 10 systems HAVE_POSIX_SPAWN, whereas previous versions do not.
Diffstat (limited to 'devel/gettext/patches')
-rw-r--r-- | devel/gettext/patches/patch-am | 15 | ||||
-rw-r--r-- | devel/gettext/patches/patch-an | 15 | ||||
-rw-r--r-- | devel/gettext/patches/patch-ao | 15 | ||||
-rw-r--r-- | devel/gettext/patches/patch-ap | 15 |
4 files changed, 60 insertions, 0 deletions
diff --git a/devel/gettext/patches/patch-am b/devel/gettext/patches/patch-am new file mode 100644 index 00000000000..8e39a19a5a5 --- /dev/null +++ b/devel/gettext/patches/patch-am @@ -0,0 +1,15 @@ +$NetBSD: patch-am,v 1.1 2004/10/13 17:14:36 gavan Exp $ + +--- lib/execute.c.orig 2002-01-02 10:55:32.000000000 +0000 ++++ lib/execute.c +@@ -56,6 +56,10 @@ + # define STDERR_FILENO 2 + #endif + ++#ifndef HAVE_ENVIRON_DECL ++extern char **environ; ++#endif ++ + #define _(str) gettext (str) + + diff --git a/devel/gettext/patches/patch-an b/devel/gettext/patches/patch-an new file mode 100644 index 00000000000..7fac37420de --- /dev/null +++ b/devel/gettext/patches/patch-an @@ -0,0 +1,15 @@ +$NetBSD: patch-an,v 1.1 2004/10/13 17:14:36 gavan Exp $ + +--- lib/pipe-bidi.c.orig 2002-01-02 10:55:32.000000000 +0000 ++++ lib/pipe-bidi.c +@@ -51,6 +51,10 @@ + # define STDOUT_FILENO 1 + #endif + ++#ifndef HAVE_ENVIRON_DECL ++extern char **environ; ++#endif ++ + #define _(str) gettext (str) + + diff --git a/devel/gettext/patches/patch-ao b/devel/gettext/patches/patch-ao new file mode 100644 index 00000000000..90cfc8a05e7 --- /dev/null +++ b/devel/gettext/patches/patch-ao @@ -0,0 +1,15 @@ +$NetBSD: patch-ao,v 1.1 2004/10/13 17:14:36 gavan Exp $ + +--- lib/pipe-in.c.orig 2002-01-02 10:55:32.000000000 +0000 ++++ lib/pipe-in.c +@@ -51,6 +51,10 @@ + # define STDOUT_FILENO 1 + #endif + ++#ifndef HAVE_ENVIRON_DECL ++extern char **environ; ++#endif ++ + #define _(str) gettext (str) + + diff --git a/devel/gettext/patches/patch-ap b/devel/gettext/patches/patch-ap new file mode 100644 index 00000000000..47a896ea697 --- /dev/null +++ b/devel/gettext/patches/patch-ap @@ -0,0 +1,15 @@ +$NetBSD: patch-ap,v 1.1 2004/10/13 17:14:36 gavan Exp $ + +--- lib/pipe-out.c.orig 2002-01-02 10:55:32.000000000 +0000 ++++ lib/pipe-out.c +@@ -51,6 +51,10 @@ + # define STDOUT_FILENO 1 + #endif + ++#ifndef HAVE_ENVIRON_DECL ++extern char **environ; ++#endif ++ + #define _(str) gettext (str) + + |