mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
all: fix #includes for AIX, add a few AIX "implementation" files
This commit is contained in:
parent
f84d54a033
commit
5802b09e9d
9 changed files with 25 additions and 0 deletions
|
@ -6,6 +6,8 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define HAS_SYS_TERMIOS 1
|
||||
|
||||
#define __BSD_VISIBLE 1 /* FreeBSD 5.x */
|
||||
#if defined(__sun__)
|
||||
# define __EXTENSIONS__ 1 /* SunOS */
|
||||
|
@ -34,6 +36,8 @@ extern "C" {
|
|||
#endif
|
||||
#if defined(__AIX__)
|
||||
# define _XOPEN_SOURCE 600
|
||||
# define _ALL_SOURCE
|
||||
# undef HAS_SYS_TERMIOS
|
||||
#endif
|
||||
#if defined(__APPLE__)
|
||||
# define _DARWIN_NO_64_BIT_INODE /* Snow Leopard */
|
||||
|
|
2
src/cmd/9term/AIX.c
Normal file
2
src/cmd/9term/AIX.c
Normal file
|
@ -0,0 +1,2 @@
|
|||
#define TIOCSCTTY 0x540E
|
||||
#include "bsdpty.c"
|
|
@ -5,7 +5,9 @@
|
|||
#include <errno.h>
|
||||
#include <grp.h>
|
||||
#include <termios.h>
|
||||
#ifdef HAS_SYS_TERMIOS
|
||||
#include <sys/termios.h>
|
||||
#endif
|
||||
#ifdef __linux__
|
||||
#include <pty.h>
|
||||
#endif
|
||||
|
|
9
src/cmd/auxstats/AIX.c
Normal file
9
src/cmd/auxstats/AIX.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <u.h>
|
||||
#include <libc.h>
|
||||
#include <bio.h>
|
||||
#include "dat.h"
|
||||
|
||||
void (*statfn[])(int) =
|
||||
{
|
||||
0
|
||||
};
|
|
@ -9,7 +9,10 @@
|
|||
*/
|
||||
#include <u.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <termios.h>
|
||||
#ifdef HAS_SYS_TERMIOS
|
||||
#include <sys/termios.h>
|
||||
#endif
|
||||
#include <libc.h>
|
||||
#include <draw.h>
|
||||
#include <bio.h>
|
||||
|
|
1
src/cmd/vbackup/mount-AIX.c
Normal file
1
src/cmd/vbackup/mount-AIX.c
Normal file
|
@ -0,0 +1 @@
|
|||
#include "mount-none.c"
|
|
@ -2,7 +2,9 @@
|
|||
#define NOPLAN9DEFINES
|
||||
#include <libc.h>
|
||||
#include <termios.h>
|
||||
#ifdef HAS_SYS_TERMIOS
|
||||
#include <sys/termios.h>
|
||||
#endif
|
||||
|
||||
static int
|
||||
rawx(int fd, int echoing)
|
||||
|
|
1
src/libip/AIX.c
Normal file
1
src/libip/AIX.c
Normal file
|
@ -0,0 +1 @@
|
|||
#include "none.c"
|
1
src/libmach/AIX.c
Normal file
1
src/libmach/AIX.c
Normal file
|
@ -0,0 +1 @@
|
|||
#include "nosys.c"
|
Loading…
Reference in a new issue