CVS commit: src/lib/libposix

2011-10-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 27 17:18:10 UTC 2011

Modified Files:
src/lib/libposix: Makefile

Log Message:
HACK: Include _errno.c here for powerpc64 build. Otherwise __errno does not
resolve. Why?


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libposix/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libposix/Makefile
diff -u src/lib/libposix/Makefile:1.14 src/lib/libposix/Makefile:1.15
--- src/lib/libposix/Makefile:1.14	Sun Oct 26 03:28:49 2008
+++ src/lib/libposix/Makefile	Thu Oct 27 13:18:09 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2008/10/26 07:28:49 mrg Exp $
+#	$NetBSD: Makefile,v 1.15 2011/10/27 17:18:09 christos Exp $
 
 LIB=	posix
 
@@ -14,6 +14,13 @@ CPPFLAGS+=-I${NETBSDSRCDIR}/sys
 
 AFLAGS+=-I${ARCHDIR}
 
+.if ${MACHINE_ARCH} == powerpc64
+# XXX: How come it does not resolve from libc?
+.PATH.c: ${NETBSDSRCDIR}/lib/libc/gen
+SRCS+= _errno.c
+.endif
+
 .include ${.CURDIR}/sys/Makefile.inc
+SRCS+=_errno.c
 
 .include bsd.lib.mk



CVS commit: src/lib/libposix

2011-10-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 27 19:56:50 UTC 2011

Modified Files:
src/lib/libposix: Makefile

Log Message:
remove second _errno.h


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libposix/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libposix/Makefile
diff -u src/lib/libposix/Makefile:1.15 src/lib/libposix/Makefile:1.16
--- src/lib/libposix/Makefile:1.15	Thu Oct 27 13:18:09 2011
+++ src/lib/libposix/Makefile	Thu Oct 27 15:56:50 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.15 2011/10/27 17:18:09 christos Exp $
+#	$NetBSD: Makefile,v 1.16 2011/10/27 19:56:50 christos Exp $
 
 LIB=	posix
 
@@ -21,6 +21,5 @@ SRCS+= _errno.c
 .endif
 
 .include ${.CURDIR}/sys/Makefile.inc
-SRCS+=_errno.c
 
 .include bsd.lib.mk