Several ports fixes
This commit is contained in:
@@ -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}
|
||||
|
@@ -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
|
||||
|
@@ -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",
|
||||
|
@@ -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__
|
||||
|
Reference in New Issue
Block a user