From ad4548d14ca905cf576cf8b5447fcf84c0e188cb Mon Sep 17 00:00:00 2001 From: arai Date: Sat, 18 May 2002 15:48:23 +0000 Subject: [PATCH] * src/lha_macro.h: getuid(), chown(), kill(), link() are provisionally defined as 0. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/lha/lha/trunk@47 6a8cc165-1e22-0410-a132-eb4e3f353aba --- src/lha_macro.h | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/lha_macro.h b/src/lha_macro.h index fbd40f1..e00a8b1 100644 --- a/src/lha_macro.h +++ b/src/lha_macro.h @@ -64,12 +64,8 @@ extern struct tm *localtime(); extern char *getenv(); -#ifndef _MINIX -#ifndef __STDC__ -extern char *malloc(); -extern char *realloc(); -#endif -#endif +extern char *xmalloc(); +extern char *xrealloc(); /* external variables */ extern int errno; @@ -83,6 +79,13 @@ typedef int boolean; #define FILENAME_LENGTH 1024 +#if defined __MINGW32__ +# define getuid() 0 +# define chown(file, uid, gid) 0 +# define kill(pid, sig) 0 +# define link(from, to) 0 +#endif + /* ------------------------------------------------------------------------ */ /* YOUR CUSTOMIZIES */ /* ------------------------------------------------------------------------ */ @@ -258,7 +261,7 @@ typedef short node; /* ------------------------------------------------------------------------ */ /* Slide relation */ /* ------------------------------------------------------------------------ */ -#if defined(__STDC__) || defined(AIX) +#if HAVE_LIMITS_H #include @@ -296,7 +299,7 @@ typedef short node; #define LONG_MIN (LONG_MAX-ULONG_MAX) #endif -#endif /* not __STDC__ */ +#endif /* ------------------------------------------------------------------------ */ /* FILE Attribute */ -- 2.11.0