summaryrefslogtreecommitdiff
path: root/lib/libalpm/util.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-07-12 15:20:43 -0400
committerDan McGee <dan@archlinux.org>2007-07-12 15:20:43 -0400
commit20f73d6299c08fa79c2c8edd3d1955e208e701cb (patch)
tree470b4e84b81009aaaf318c04cee3fa1dcb1e2b53 /lib/libalpm/util.h
parent653fb8fe036363dfb550785c45adcf26f6fcbfbc (diff)
downloadpacman-20f73d6299c08fa79c2c8edd3d1955e208e701cb.tar.xz
Remove versioncmp.{c,h}, clean up selective #ifdefs
Remove versioncmp.c by moving all functions to locations that make sense. Move replacement functions (for building without glibc) into util.c where they belong, and do proper checks for them instead of using __sun__, etc. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.h')
-rw-r--r--lib/libalpm/util.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h
index 5fa8269d..8d84d87f 100644
--- a/lib/libalpm/util.h
+++ b/lib/libalpm/util.h
@@ -54,9 +54,11 @@ int _alpm_ldconfig(const char *root);
void _alpm_time2string(time_t t, char *buffer);
int _alpm_str_cmp(const void *s1, const void *s2);
-#ifdef __sun__
-char* strsep(char** str, const char* delims);
-char* mkdtemp(char *template);
+#ifndef HAVE_STRVERSCMP
+static int strverscmp(const char *, const char *);
+#endif
+#ifndef HAVE_STRSEP
+char *strsep(char **, const char *);
#endif
/* check exported library symbols with: nm -C -D <lib> */