FreeBSD port (6): C++ demangling protection for <sys/sysinfo.h>
Bruno Haible
bruno@clisp.org
Tue Jul 9 06:41:00 GMT 2002
Hi,
The FreeBSD port uses the generic <sys/sysinfo.h> header; it is lacking
the C++ protection.
2002-07-06 Bruno Haible <bruno@clisp.org>
* sysdeps/generic/sys/sysinfo.h: Surround with __{BEGIN,END}_DECLS.
diff -r -c3 glibc-20020627.bak/sysdeps/generic/sys/sysinfo.h glibc-20020627/sysdeps/generic/sys/sysinfo.h
--- glibc-20020627.bak/sysdeps/generic/sys/sysinfo.h Tue Jul 10 23:00:37 2001
+++ glibc-20020627/sysdeps/generic/sys/sysinfo.h Fri Jul 5 01:17:07 2002
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1996-1997, 1999, 2000-2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,6 +21,8 @@
#include <features.h>
+__BEGIN_DECLS
+
/* Return number of configured processors. */
extern int get_nprocs_conf (void) __THROW;
@@ -34,4 +36,6 @@
/* Return number of available physical pages of memory in the system. */
extern long int get_avphys_pages (void) __THROW;
+__END_DECLS
+
#endif /* sys/sysinfo.h */
More information about the Libc-alpha
mailing list