diff options
author | Erik Troan <ewt@redhat.com> | 1999-08-20 18:36:33 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 1999-08-20 18:36:33 +0000 |
commit | 3d97737714058409290975e456be00e13b752a8a (patch) | |
tree | 028a84f7e2d2bb20d9dbc7975cae7090601ec8c3 /stubs | |
parent | 8bb9bbd84da816ebe13b94cd0b01b50c151fe756 (diff) | |
download | anaconda-3d97737714058409290975e456be00e13b752a8a.tar.gz anaconda-3d97737714058409290975e456be00e13b752a8a.tar.xz anaconda-3d97737714058409290975e456be00e13b752a8a.zip |
added
Diffstat (limited to 'stubs')
-rw-r--r-- | stubs/Makefile | 10 | ||||
-rw-r--r-- | stubs/bzip.c | 28 |
2 files changed, 38 insertions, 0 deletions
diff --git a/stubs/Makefile b/stubs/Makefile new file mode 100644 index 000000000..dda010909 --- /dev/null +++ b/stubs/Makefile @@ -0,0 +1,10 @@ +all: libbz2.so.0 + +libbz2.so.0: bzip.c + gcc -fPIC -shared -o libbz2.so.0 bzip.c + +clean: + rm -f *.so.* *.o + +install: + install libbz2.so.0 $(DESTDIR)/usr/lib diff --git a/stubs/bzip.c b/stubs/bzip.c new file mode 100644 index 000000000..b4bfda84a --- /dev/null +++ b/stubs/bzip.c @@ -0,0 +1,28 @@ +/* empty bzip stubs */ + +void * bzdopen(int fd, const char *mode) { + return (void *) 0; +} + +void * bzopen(const char * fn, const char *mode) { + return (void *) 0; +} + +const char * bzerror(void * b, int * err) { + return (void *) 0; +} + +int bzwrite(void * b, void * buf, int len) { + return -1; +} + +int bzread(void * b, void * buf, int len) { + return -1; +} + +void bzclose(void * b) { +} + +int bzflush(void * b) { + return 0; +} |