Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib/compat.h @ 2872:c0e2a38b7647 HEAD
Check for libgen.h and if it's not found, use my_basename(). Also
my_seteuid() didn't actually replace seteuid() before if it didn't exist.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 08 Nov 2004 04:45:59 +0200 |
parents | 20dcf58cc05c |
children | 9f765960fca6 |
line wrap: on
line diff
--- a/src/lib/compat.h Mon Nov 08 04:31:40 2004 +0200 +++ b/src/lib/compat.h Mon Nov 08 04:45:59 2004 +0200 @@ -109,9 +109,15 @@ #endif #ifndef HAVE_SETEUID +# define seteuid my_seteuid int my_seteuid(uid_t euid); #endif +#ifndef HAVE_LIBGEN_H +# define basename my_basename +char *my_basename(char *path); +#endif + /* ctype.h isn't safe with signed chars, use our own instead if really needed */ #define i_toupper(x) ((char) toupper((int) (unsigned char) (x)))