summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-12-30 19:01:23 +0000
committerjbj <devnull@localhost>2000-12-30 19:01:23 +0000
commite5899585adb06bc6d934b6a571c6778710a334a6 (patch)
treebd079fb121979a0128b2ab85d0b280a7de108ba0 /rpmio
parent23f9e46a3394fbe6687a1c0446c9a2ae393cc515 (diff)
downloadrpm-e5899585adb06bc6d934b6a571c6778710a334a6.tar.gz
rpm-e5899585adb06bc6d934b6a571c6778710a334a6.tar.bz2
rpm-e5899585adb06bc6d934b6a571c6778710a334a6.zip
- (non-linux): move stubs.c to rpmio (#21132).
- (python): bind initdb (#20988). CVS patchset: 4389 CVS date: 2000/12/30 19:01:23
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/Makefile.am2
-rw-r--r--rpmio/stubs.c80
2 files changed, 81 insertions, 1 deletions
diff --git a/rpmio/Makefile.am b/rpmio/Makefile.am
index c5bcc2247..470bb3217 100644
--- a/rpmio/Makefile.am
+++ b/rpmio/Makefile.am
@@ -13,7 +13,7 @@ noinst_HEADERS = base64.h rpmio_internal.h
lib_LTLIBRARIES = librpmio.la
librpmio_la_SOURCES = rpmrpc.c rpmio.c rpmio_api.c url.c macro.c \
- base64.c digest.c \
+ base64.c digest.c stubs.c \
ugid.c rpmmalloc.c rpmlog.c
# XXX Add internal libtool dependence
diff --git a/rpmio/stubs.c b/rpmio/stubs.c
new file mode 100644
index 000000000..a921d0a40
--- /dev/null
+++ b/rpmio/stubs.c
@@ -0,0 +1,80 @@
+/**
+ * \file lib/stubs.c
+ */
+
+/* XXX Portable shared libraries require rpmlib to contain these functions. */
+
+#include "system.h"
+
+#if !defined(HAVE_BASENAME)
+#include "misc/basename.c"
+#endif
+
+#if !defined(HAVE_GETCWD)
+#include "misc/getcwd.c"
+#endif
+
+#if !defined(HAVE_GETWD)
+#include "misc/getwd.c"
+#endif
+
+#if !defined(HAVE_PUTENV)
+#include "misc/putenv.c"
+#endif
+
+#if !defined(HAVE_REALPATH)
+#include "misc/realpath.c"
+#endif
+
+#if !defined(HAVE_SETENV)
+#include "misc/setenv.c"
+#endif
+
+#if !defined(HAVE_STPCPY)
+#include "misc/stpcpy.c"
+#endif
+
+#if !defined(HAVE_STPNCPY)
+#include "misc/stpncpy.c"
+#endif
+
+#if !defined(HAVE_STRCASECMP)
+#include "misc/strcasecmp.c"
+#endif
+
+#if !defined(HAVE_STRNCASECMP)
+#include "misc/strncasecmp.c"
+#endif
+
+#if !defined(HAVE_STRCSPN)
+#include "misc/strcspn.c"
+#endif
+
+#if !defined(HAVE_STRSPN)
+#include "misc/strdup.c"
+#endif
+
+#if !defined(HAVE_STRERROR)
+#include "misc/error.c"
+#endif
+
+#if !defined(HAVE_STRTOL)
+#include "misc/strtol.c"
+#endif
+
+#if !defined(HAVE_STRTOUL)
+#include "misc/strtoul.c"
+#endif
+
+#if !defined(HAVE_STRSPN)
+#include "misc/strspn.c"
+#endif
+
+#if !defined(HAVE_STRSTR)
+#include "misc/strstr.c"
+#endif
+
+#if defined(USE_GNU_GLOB)
+#include "misc/fnmatch.c"
+#include "misc/glob.c"
+#endif