mirror of
https://github.com/tmate-io/tmate.git
synced 2025-04-04 04:41:51 +02:00
Copy osdep-unknown.c for AIX to make @PLATFORM@ work.
This commit is contained in:
parent
93fd9cc29d
commit
96fe3b26c1
@ -1,4 +1,4 @@
|
|||||||
# $Id: configure.ac,v 1.10 2011-01-10 21:51:56 nicm Exp $
|
# $Id: configure.ac,v 1.11 2011-01-10 22:00:47 nicm Exp $
|
||||||
|
|
||||||
# Miscellaneous autofoo bullshit.
|
# Miscellaneous autofoo bullshit.
|
||||||
AC_INIT(tmux, 1.5)
|
AC_INIT(tmux, 1.5)
|
||||||
@ -320,6 +320,10 @@ fi
|
|||||||
# Figure out the platform for osdep-*.c and forkpty-*.c.
|
# Figure out the platform for osdep-*.c and forkpty-*.c.
|
||||||
AC_MSG_CHECKING(platform)
|
AC_MSG_CHECKING(platform)
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
|
*aix*)
|
||||||
|
AC_MSG_RESULT(aix)
|
||||||
|
PLATFORM=aix
|
||||||
|
;;
|
||||||
*darwin*)
|
*darwin*)
|
||||||
AC_MSG_RESULT(darwin)
|
AC_MSG_RESULT(darwin)
|
||||||
AC_DEFINE(BROKEN_CMSG_FIRSTHDR)
|
AC_DEFINE(BROKEN_CMSG_FIRSTHDR)
|
||||||
@ -351,6 +355,7 @@ case "$host_os" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AC_SUBST(PLATFORM)
|
AC_SUBST(PLATFORM)
|
||||||
|
AM_CONDITIONAL(IS_AIX, test "x$PLATFORM" = xaix)
|
||||||
AM_CONDITIONAL(IS_DARWIN, test "x$PLATFORM" = xdarwin)
|
AM_CONDITIONAL(IS_DARWIN, test "x$PLATFORM" = xdarwin)
|
||||||
AM_CONDITIONAL(IS_LINUX, test "x$PLATFORM" = xlinux)
|
AM_CONDITIONAL(IS_LINUX, test "x$PLATFORM" = xlinux)
|
||||||
AM_CONDITIONAL(IS_FREEBSD, test "x$PLATFORM" = xfreebsd)
|
AM_CONDITIONAL(IS_FREEBSD, test "x$PLATFORM" = xfreebsd)
|
||||||
|
35
osdep-aix.c
Normal file
35
osdep-aix.c
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
/* $Id: osdep-aix.c,v 1.1 2011-01-10 22:00:47 nicm Exp $ */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2011 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
|
*
|
||||||
|
* Permission to use, copy, modify, and distribute this software for any
|
||||||
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
* copyright notice and this permission notice appear in all copies.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||||
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||||
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
* WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
|
||||||
|
* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
#include <event.h>
|
||||||
|
|
||||||
|
#include "tmux.h"
|
||||||
|
|
||||||
|
char *
|
||||||
|
osdep_get_name(unused int fd, unused char *tty)
|
||||||
|
{
|
||||||
|
return (NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
struct event_base *
|
||||||
|
osdep_event_init(void)
|
||||||
|
{
|
||||||
|
return (event_init());
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user