Fix posixlib idea of pipe (fd is an out parameter, obviously)

Arrange for Makefile to rebuild relevant files
This commit is contained in:
espie 1999-09-24 14:13:06 +00:00
parent 2d8ee85908
commit 0699221ed4
2 changed files with 21 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.6 1999/09/22 10:34:03 espie Exp $
# $OpenBSD: Makefile,v 1.7 1999/09/24 14:13:06 espie Exp $
NEED_VERSION= 1.116
DISTNAME= lclint-2.4b
@ -25,6 +25,15 @@ DOCDIR= ${PREFIX}/share/doc/${DISTNAME}
post-patch:
@cd ${WRKSRC}/src && ${MAKE_PROGRAM} up
LIBSRC=${WRKSRC}/lib
LCLINT=${WRKSRC}/bin/lclint
post-build:
-cd ${LIBSRC} && rm *.orig
cd ${LIBSRC} && $(LCLINT) -nolib ansi.h posix.h -dump posix
cd ${LIBSRC} && $(LCLINT) -DSTRICT -nolib ansi.h posix.h -dump posixstrict
cd ${LIBSRC} && $(LCLINT) -nolib ansi.h posix.h unix.h -dump unix
cd ${LIBSRC} && $(LCLINT) -DSTRICT -nolib ansi.h posix.h unix.h -dump unixstrict
post-install:
@${MKDIR} ${DOCDIR}
@cd ${DOCDIR} && ${TAR} -zxf ${FULLDISTDIR}/${GUIDE}

View File

@ -0,0 +1,11 @@
--- lib/posix.h.orig Fri Sep 24 13:47:38 1999
+++ lib/posix.h Fri Sep 24 13:48:04 1999
@@ -819,7 +819,7 @@ pause (void)
/*@modifies errno@*/;
extern int
-pipe (int fd[])
+pipe (/*@out@*/ int fd[])
/*@modifies errno@*/;
extern ssize_t