From d5a813766d1b1a5de070a9f6f87a439df963a8ac Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 25 Nov 2023 17:59:38 +0000 Subject: Fix libsystem_dummy so it compiles again git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4786 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/Makefile | 5 ++++- lib/libsystem_dummy.c | 30 ++++++++++++++++++++++++++++-- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index ffe2a143..a633cf7b 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -96,7 +96,10 @@ $(LIBOBJECTS): CFLAGS_TARGET=$(CFLAGS_SHLIB) libpbm3.o: CFLAGS_TARGET+=$(CFLAGS_SSE) -$(LIBOBJECTS): %.o: %.c importinc +# libsystem_dummy.o is in the following rule because we like to compile it +# even when it's not part of the library, just for a test. + +$(LIBOBJECTS) libsystem_dummy.o: %.o: %.c importinc $(CC) -c $(INCLUDES) $(CFLAGS_ALL) -o $@ $< # The major number increases when there is a non-backward-compatible change diff --git a/lib/libsystem_dummy.c b/lib/libsystem_dummy.c index 97dd8984..e8acf387 100644 --- a/lib/libsystem_dummy.c +++ b/lib/libsystem_dummy.c @@ -9,6 +9,7 @@ the facility is not available. =============================================================================*/ +#include #include #include "pm.h" @@ -29,6 +30,8 @@ pm_system_vp(const char * const progName, "requires."); } + + void pm_system_lp(const char * const progName, void stdinFeeder(int, void *), @@ -44,6 +47,8 @@ pm_system_lp(const char * const progName, "requires."); } + + void pm_system(void stdinFeeder(int, void *), void * const feederParm, @@ -59,11 +64,30 @@ pm_system(void stdinFeeder(int, void *), } + +void +pm_feed_null(int const pipeToFeedFd, + void * const feederParm) { + + assert(false); /* Can't ever run, since pm_system() is a dummy */ +} + + + +void +pm_accept_null(int const pipetosuckFd, + void * const accepterParm ) { + + assert(false); /* Can't ever run, since pm_system() is a dummy */ +} + + + void pm_feed_from_memory(int const pipeToFeedFd, void * const feederParm) { - assert(FALSE); /* Can't ever run, since pm_system() is a dummy */ + assert(false); /* Can't ever run, since pm_system() is a dummy */ } @@ -72,6 +96,8 @@ void pm_accept_to_memory(int const pipetosuckFd, void * const accepterParm) { - assert(FALSE); /* Can't ever run, since pm_system() is a dummy */ + assert(false); /* Can't ever run, since pm_system() is a dummy */ } + + -- cgit 1.4.1