"if [ $STATUS -ne 0 ]; then\n"
" exit $STATUS\n"
"fi",
- c, basename(fn),
+ c, (const char *) basename(fn),
zipper,
fn, strip, args);
xfree(zipper);
} else {
sprintf(buf,
"echo \"Patch #%d (%s):\"\n"
- "patch -p%d %s -s < %s", c, basename(fn), strip, args, fn);
+ "patch -p%d %s -s < %s", c, (const char *) basename(fn),
+ strip, args, fn);
}
xfree(urlfn);
int i;
char * mntdir;
# if GETMNTENT_ONE || GETMNTENT_TWO
- our_mntent item, * itemptr;
+ our_mntent item;
FILE * mtab;
# elif HAVE_GETMNTINFO_R
struct statfs * mounts = NULL;
while (1) {
# if GETMNTENT_ONE
/* this is Linux */
- itemptr = getmntent(mtab);
+ our_mntent * itemptr = getmntent(mtab);
if (!itemptr) break;
item = *itemptr;
mntdir = item.our_mntdir;
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#if HAVE_CONFIG_H
-# include <config.h>
-#endif
+# include "system.h"
#include <errno.h>
#if !_LIBC
char * stpcpy(char * dest, const char * src);
#endif
+#if !defined(HAVE_STPNCPY) || defined(__LCLINT__)
+char * stpncpy(char * dest, const char * src, size_t n);
+#endif
+
#include <errno.h>
#ifndef errno
extern int errno;
extern void *myrealloc(void *, size_t);
#endif
+#if ! HAVE_SETENV
+extern int setenv(const char *name, const char *value, int replace);
+extern void unsetenv(const char *name);
+#endif
+
#if HAVE_SYS_SOCKET_H
#include <sys/types.h>
#ifndef __LCLINT__