SunOS tweaks.

This commit is contained in:
Nicholas Marriott 2009-05-14 07:49:23 +00:00
parent 3b0bd5a3e6
commit 5adb342147
2 changed files with 10 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $Id: cmd-set-password.c,v 1.3 2009-01-19 18:23:40 nicm Exp $ */ /* $Id: cmd-set-password.c,v 1.4 2009-05-14 07:49:23 nicm Exp $ */
/* /*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@ -23,6 +23,10 @@
#include "tmux.h" #include "tmux.h"
#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
/* /*
* Set server password. * Set server password.
*/ */

8
configure vendored
View File

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# $Id: configure,v 1.8 2009-05-14 00:40:58 nicm Exp $ # $Id: configure,v 1.9 2009-05-14 07:49:23 nicm Exp $
UNAME=`uname -s` UNAME=`uname -s`
@ -80,14 +80,16 @@ EOF
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
SunOS) SunOS)
cat <<EOF >>$CONFIG_H cat <<EOF >>$CONFIG_H
#define HAVE_CRYPT_H
#define HAVE_POLL #define HAVE_POLL
#define HAVE_STRLCAT #define HAVE_STRLCAT
#define HAVE_STRLCPY #define HAVE_STRLCPY
#define HAVE_VSYSLOG #define HAVE_VSYSLOG
EOF EOF
cat <<EOF >>$CONFIG_MK cat <<EOF >>$CONFIG_MK
CPPFLAGS+= -I/usr/local/include/ncurses CPPFLAGS+= -I/usr/local/include/ncurses \
LDFLAGS+= -L/usr/gnu/lib -I/opt/csw/include -I/opt/csw/include/ncurses
LDFLAGS+= -L/usr/gnu/lib -L/opt/csw/lib
LIBS+= -lsocket -lnsl LIBS+= -lsocket -lnsl
SRCS+= osdep-unknown.c \ SRCS+= osdep-unknown.c \
compat/asprintf.c \ compat/asprintf.c \