This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix libgloss with headers from C libraries other than newlib


Hello,

this patch is needed when using C libraries other than newlib
(both glibc and uClibc want _XOPEN_SOURCE to define pid_t.

Please apply to CVS for me if the patch is OK.


2003-10-12 Bernardo Innocenti <bernie@develer.com>


	* m68k/sim-funcs.c (_XOPEN_SOURCE): Define to get the pid_t
	typedef from <unistd.h>.

diff -u -3 -p -u -p -r1.1 sim-funcs.c
--- m68k/sim-funcs.c	28 Feb 2001 18:41:57 -0000	1.1
+++ m68k/sim-funcs.c	12 Oct 2003 01:57:46 -0000
@@ -13,6 +13,7 @@
 * they apply.
 */

+#define _XOPEN_SOURCE
#include <unistd.h>

int

--
 // Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/  http://www.develer.com/

Please don't send Word attachments - http://www.gnu.org/philosophy/no-word-attachments.html




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]