diff options
Diffstat (limited to 'source4/heimdal/lib/roken')
-rw-r--r-- | source4/heimdal/lib/roken/rkpty.c | 4 | ||||
-rw-r--r-- | source4/heimdal/lib/roken/roken.h.in | 14 |
2 files changed, 17 insertions, 1 deletions
diff --git a/source4/heimdal/lib/roken/rkpty.c b/source4/heimdal/lib/roken/rkpty.c index 2776c1318b1..6043e2b8156 100644 --- a/source4/heimdal/lib/roken/rkpty.c +++ b/source4/heimdal/lib/roken/rkpty.c @@ -93,6 +93,10 @@ caught_signal(int signo) static void open_pty(void) { +#ifdef _AIX + printf("implement open_pty\n"); + exit(77); +#endif #if defined(HAVE_OPENPTY) || defined(__linux) || defined(__osf__) /* XXX */ if(openpty(&master, &slave, line, 0, 0) == 0) return; diff --git a/source4/heimdal/lib/roken/roken.h.in b/source4/heimdal/lib/roken/roken.h.in index 2bd471736cc..6fc533c697f 100644 --- a/source4/heimdal/lib/roken/roken.h.in +++ b/source4/heimdal/lib/roken/roken.h.in @@ -306,6 +306,12 @@ int ROKEN_LIB_FUNCTION getdtablesize(void); char * ROKEN_LIB_FUNCTION strerror(int); #endif +#if !defined(HAVE_STRERROR) && !defined(strerror) +#define strerror_r rk_strerror_r +int ROKEN_LIB_FUNCTION strerror_r(int, char *, size_t); +#endif + + #if !defined(HAVE_HSTRERROR) || defined(NEED_HSTRERROR_PROTO) #ifndef HAVE_HSTRERROR #define hstrerror rk_hstrerror @@ -476,7 +482,7 @@ unsigned short ROKEN_LIB_FUNCTION bswap16(unsigned short); int rk_flock(int fd, int operation); #endif /* HAVE_FLOCK */ -#ifdef SunOS +#if defined(SunOS) || defined(_AIX) #define dirfd(x) ((x)->dd_fd) #endif @@ -799,6 +805,12 @@ time_t ROKEN_LIB_FUNCTION rk_timegm(struct tm *tm); #endif +#ifdef NEED_QSORT +#define qsort rk_qsort +void +rk_qsort(void *, size_t, size_t, int (*)(const void *, const void *)); +#endif + #ifdef SOCKET_WRAPPER_REPLACE #include <socket_wrapper.h> #endif |