diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-11-25 17:59:38 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-11-25 17:59:38 +0000 |
commit | d5a813766d1b1a5de070a9f6f87a439df963a8ac (patch) | |
tree | 9106753ec7acf2f0fe3262e32bf669ef67036da9 /lib | |
parent | 9329e432a1c19683e114f37a779fd70abc350240 (diff) | |
download | netpbm-mirror-d5a813766d1b1a5de070a9f6f87a439df963a8ac.tar.gz netpbm-mirror-d5a813766d1b1a5de070a9f6f87a439df963a8ac.tar.xz netpbm-mirror-d5a813766d1b1a5de070a9f6f87a439df963a8ac.zip |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile | 5 | ||||
-rw-r--r-- | 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 <stdbool.h> #include <assert.h> #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 */ } + + |