Add signal and strdup to libbroken

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@422 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1996-04-23 12:32:48 +00:00
parent 1b07ffc8ba
commit cf3aa3bee9
2 changed files with 12 additions and 3 deletions

View File

@@ -24,12 +24,15 @@ libdir = $(exec_prefix)/lib
PICFLAGS = @PICFLAGS@ PICFLAGS = @PICFLAGS@
LIBNAME = libbroken LIBNAME = libbroken
LIBEXT = @LIBEXT@ #LIBEXT = @LIBEXT@ Always build archive library and don't install!
LIBEXT = a
SHLIBEXT = @SHLIBEXT@ SHLIBEXT = @SHLIBEXT@
LIB = $(LIBNAME).$(LIBEXT) LIB = $(LIBNAME).$(LIBEXT)
OBJECTS = @LIBOBJS@ SOURCES = signal.c
OBJECTS = signal.o @LIBOBJS@
all: $(LIB) all: $(LIB)

View File

@@ -1,7 +1,11 @@
#include "bsd_locl.h" #ifdef HAVE_CONFIG_H
#include <config.h>
#endif
RCSID("$Id$"); RCSID("$Id$");
#include <signal.h>
/* /*
* We would like to always use this signal but there is a link error * We would like to always use this signal but there is a link error
* on NEXTSTEP * on NEXTSTEP
@@ -13,6 +17,8 @@ RCSID("$Id$");
* Do we need any extra hacks for SIGCLD and/or SIGCHLD? * Do we need any extra hacks for SIGCLD and/or SIGCHLD?
*/ */
typedef RETSIGTYPE (*SigAction)(/* int??? */);
SigAction SigAction
signal(int iSig, SigAction pAction) signal(int iSig, SigAction pAction)
{ {