Several ports fixes

This commit is contained in:
Michiel Broek
2005-01-06 22:21:59 +00:00
parent d7495fce84
commit f5b04a48ab
10 changed files with 20 additions and 10 deletions

View File

@@ -84,7 +84,7 @@ libnodelist.a: ${NODELIST_OBJS}
ar r $@ $?
${RANLIB} $@
mbcharsetc: ${CHC_OBJS} ${LIBS}
mbcharsetc: ${CHC_OBJS}
${CC} -o mbcharsetc ${CHC_OBJS} ${LDFLAGS} ${LIBS}
charset.bin: mbcharsetc ${MAPS}

View File

@@ -90,7 +90,9 @@
#include <zlib.h>
#endif
#include <pthread.h>
#if !defined(__ppc__)
#include <sys/poll.h>
#endif
/* used to use #elif, but native braindead hpux 9.00 c compiler didn't
* * understand it */
@@ -138,7 +140,7 @@ struct termios;
#include <stddef.h>
#include <fcntl.h>
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__ppc__)
#include <netinet/in_systm.h>
#include <libgen.h>
#endif

View File

@@ -36,7 +36,7 @@
* Signal handler signal names.
*/
#if defined(__i386__)
#if defined(__i386__) || defined(__x86_64__)
char SigName[32][16] = { "NOSIGNAL",
"SIGHUP", "SIGINT", "SIGQUIT", "SIGILL",
@@ -48,7 +48,7 @@ char SigName[32][16] = { "NOSIGNAL",
"SIGXFSZ", "SIGVTALRM", "SIGPROF", "SIGWINCH",
"SIGIO", "SIGPWR", "SIGUNUSED"};
#elif defined(__PPC__)
#elif defined(__PPC__) || defined(__ppc__)
char SigName[32][16] = { "NOSIGNAL",
"SIGHUP", "SIGINT", "SIGQUIT", "SIGILL",

View File

@@ -354,6 +354,8 @@ char *OsCPU()
{
#ifdef __i386__
return (char *)"i386";
#elif __x86_64__
return (char *)"x86_64";
#elif __PPC__
return (char *)"PPC";
#elif __sparc__