This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[patch] PR35915 sparc-solaris2.8 / hpux
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 16 Apr 2008 22:25:03 +0200
- Subject: [patch] PR35915 sparc-solaris2.8 / hpux
Hi all,
the attached patch fixes compilation issues on sparc-solaris2.8.
Awaiting confirmation for hpux.
No regressions seen under sparc-solaris2.8, i686-pc-linux-gnu,
darwin-i686/x86_64 and ppc-linux (32-bit).
Ok for trunk?
Thanks.
Andreas
2008-04-16 Andreas Tobler <a.tobler@schweiz.org>
PR libstdc++/35915
* configure.ac: Use GCC_HEADER_STDINT.
* src/atomic.cc: Include gstdint.h
* configure: Regenerate.
* Makefile.in: Likewise.
* doc/Makefile.in: Likewise.
* include/Makefile.in: Likewise.
* libmath/Makefile.in: Likewise.
* libsupc++/Makefile.in: Likewise.
* po/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
* aclocal.m4: Likewise.
Index: configure.ac
===================================================================
--- configure.ac (revision 134359)
+++ configure.ac (working copy)
@@ -300,6 +300,8 @@
GCC_LINUX_FUTEX([AC_DEFINE(HAVE_LINUX_FUTEX, 1, [Define if futex
syscall is available.])])
+GCC_HEADER_STDINT(include/gstdint.h)
+
# This depends on GLIBCXX CHECK_LINKER_FEATURES, but without it
assumes no.
GLIBCXX_ENABLE_SYMVERS([yes])
GLIBCXX_ENABLE_VISIBILITY([yes])
Index: src/atomic.cc
===================================================================
--- src/atomic.cc (revision 134359)
+++ src/atomic.cc (working copy)
@@ -28,7 +28,7 @@
// invalidate any other reasons why the executable file might be
covered by
// the GNU General Public License.
-#include <stdint.h>
+#include "gstdint.h"
#include <cstdatomic>
#define LOGSIZE 4