summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Vivier <Laurent.Vivier@bull.net>2002-12-27 11:15:09 +0000
committerBastien Nocera <hadess@src.gnome.org>2002-12-27 11:15:09 +0000
commitf6328422b440195b8c1d7750a168e72f30de1a98 (patch)
tree9bbc324948be4fbbe0cda5c51fbed31be8ced9b2
parenteec561d58983ab1729d0fa4556872bc933197c84 (diff)
downloadgnome-common-libgtop-GNOME-2-0-port.tar.gz
Framework for AIX supportlibgtop-GNOME-2-0-port
2002-10-08 Laurent Vivier <Laurent.Vivier@bull.net> * Framework for AIX support 2002-08-07 Vincent Berger <Vincent.Berger@ext.bull.net> * support/: Add alloca management for AIX * configure.in: correct checking for nm svn path=/branches/libgtop-GNOME-2-0-port/; revision=2679
-rw-r--r--support/findme.c21
-rw-r--r--support/popt.c21
-rw-r--r--support/poptconfig.c21
3 files changed, 57 insertions, 6 deletions
diff --git a/support/findme.c b/support/findme.c
index 4ba4950..9c949b8 100644
--- a/support/findme.c
+++ b/support/findme.c
@@ -2,6 +2,21 @@
file accompanying popt source distributions, available from
ftp://ftp.redhat.com/pub/code/popt */
+/* AIX requires this to be the first thing in the file. */
+#ifndef __GNUC__
+# if HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+# ifdef _AIX
+# pragma alloca
+# else
+# ifndef alloca /* predefined by HP cc +Olibcalls */
+char *alloca ();
+# endif
+# endif
+# endif
+#endif
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -16,8 +31,10 @@
#include <libc.h>
#endif
-#if HAVE_ALLOCA_H
-# include <alloca.h>
+#ifndef _AIX
+# if HAVE_ALLOCA_H
+# include <alloca.h>
+# endif
#endif
#include "findme.h"
diff --git a/support/popt.c b/support/popt.c
index 3e8f73e..33f34ba 100644
--- a/support/popt.c
+++ b/support/popt.c
@@ -2,6 +2,21 @@
file accompanying popt source distributions, available from
ftp://ftp.redhat.com/pub/code/popt */
+/* AIX requires this to be the first thing in the file. */
+#ifndef __GNUC__
+# if HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+# ifdef _AIX
+# pragma alloca
+# else
+# ifndef alloca /* predefined by HP cc +Olibcalls */
+char *alloca ();
+# endif
+# endif
+# endif
+#endif
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -15,8 +30,10 @@
#include <string.h>
#include <unistd.h>
-#if HAVE_ALLOCA_H
-# include <alloca.h>
+#ifndef _AIX
+# if HAVE_ALLOCA_H
+# include <alloca.h>
+# endif
#endif
#include "findme.h"
diff --git a/support/poptconfig.c b/support/poptconfig.c
index 2b44264..4c14ed2 100644
--- a/support/poptconfig.c
+++ b/support/poptconfig.c
@@ -2,6 +2,21 @@
file accompanying popt source distributions, available from
ftp://ftp.redhat.com/pub/code/popt */
+/* AIX requires this to be the first thing in the file. */
+#ifndef __GNUC__
+# if HAVE_ALLOCA_H
+# include <alloca.h>
+# else
+# ifdef _AIX
+# pragma alloca
+# else
+# ifndef alloca /* predefined by HP cc +Olibcalls */
+char *alloca ();
+# endif
+# endif
+# endif
+#endif
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -13,8 +28,10 @@
#include <string.h>
#include <unistd.h>
-#if HAVE_ALLOCA_H
-# include <alloca.h>
+#ifndef _AIX
+# if HAVE_ALLOCA_H
+# include <alloca.h>
+# endif
#endif
#include "popt-gnome.h"