git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@303 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Joshua Kwan 2004-06-18 18:04:36 +00:00
parent c38b91b557
commit cda1f84bcc
3 changed files with 5 additions and 9 deletions

View File

@ -14,6 +14,7 @@ AC_PROG_YACC
case "$(uname -s)" in
Linux | *BSD)
LIBS="$LIBS -lutil -lcrypt"
AC_DEFINE(NOSTREAMS, 1, [Use SVR4 streams support in ttyrec.])
;;
esac
@ -29,10 +30,11 @@ AC_ARG_ENABLE(enable-virus,
[AC_SUBST(EDITOR, virus.c)], [AC_SUBST(EDITOR, ee.c)])
AC_ARG_WITH(config-file,
[AS_HELP_STRING([--with-config-file=PATH], [Define the path to the default configuration file.])]
[configfile=$withval], [configfile=/etc/dgamelaunch.conf])
[AS_HELP_STRING([--with-config-file=PATH], [Define the path to the default configuration file.])],
[configfile=$withval], [configfile="/etc/dgamelaunch.conf"])
AC_DEFINE_UNQUOTED(DEFCONFIG, "$configfile", [Path to the default config file.])
AC_CHECK_FUNCS(openpty)
AC_CONFIG_FILES(Makefile)
AC_OUTPUT

View File

@ -129,7 +129,7 @@ mysetenv (const char* name, const char* value, int overwrite)
void
ttyrec_getpty ()
{
#ifdef USE_OPENPTY
#ifdef HAVE_OPENPTY
if (openpty (&master, &slave, NULL, NULL, NULL) == -1)
graceful_exit (62);
#else

View File

@ -7,12 +7,6 @@
#include <sys/types.h>
#include <time.h>
/* Default - should work everywhere */
#if defined(__linux__) || defined(BSD)
# define USE_OPENPTY
# define NOSTREAMS
#endif
#ifndef ARRAY_SIZE
# define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
#endif