Changeset 8087 for lang/c

Show
Ignore:
Timestamp:
03/18/08 20:54:29 (9 months ago)
Author:
frsyuki
Message:

lang/c/partty: supported FreeBSD

Location:
lang/c/partty/trunk
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • lang/c/partty/trunk/configure.in

    r7968 r8087  
    33 
    44AC_PREREQ(2.61) 
    5 AC_INIT(partty, 0.3.0, fr _at_ syuki.skr.jp) 
    6 AM_INIT_AUTOMAKE(partty, 0.3.0) 
     5AC_INIT(partty, 0.3.1, fr _at_ syuki.skr.jp) 
     6AM_INIT_AUTOMAKE(partty, 0.3.1) 
    77AC_CONFIG_SRCDIR(src/partty.h) 
    88AC_CONFIG_HEADER(config.h) 
     
    1515#AC_CHECK_LIB(z,compress,,AC_MSG_ERROR(Test for libz failed.)) 
    1616 
    17 AC_CHECK_HEADERS(pty.h,have_pty_h=1) 
     17AC_CHECK_HEADERS(pty.h,have_pty_h=1)  # Mac OS X 
     18AC_CHECK_HEADERS(libutil.h,have_pty_h=1)  # FreeBSD 
    1819if test "$have_pty_h" = 1; then 
    1920        AC_CHECK_LIB(util,openpty) 
    2021else 
    21         AC_CHECK_HEADERS(util.h) 
     22        AC_CHECK_HEADERS(util.h)  # Linux 
    2223fi 
    2324 
  • lang/c/partty/trunk/src/captty.cc

    r7867 r8087  
    2222#include <zlib.h> 
    2323#include <stdio.h> 
     24#include <stdlib.h> 
    2425#include <fcntl.h> 
    2526#include <fstream> 
     
    3132#ifdef HAVE_UTIL_H 
    3233#include <util.h> 
     34#endif 
     35#ifdef HAVE_LIBUTIL_H 
     36#include <libutil.h> 
    3337#endif 
    3438#ifdef HAVE_PTY_H 
  • lang/c/partty/trunk/src/cmd_captty.cc

    r7867 r8087  
    1919 
    2020#include "captty.h" 
     21#include <string.h> 
     22#include <stdlib.h> 
    2123 
    2224void usage() 
  • lang/c/partty/trunk/src/cmd_gate.cc

    r7867 r8087  
    2121#include "uniext.h" 
    2222#include <kazuhiki/network.h> 
     23#include <stdlib.h> 
    2324 
    2425void usage(void) 
  • lang/c/partty/trunk/src/cmd_host.cc

    r8076 r8087  
    2525#include <string> 
    2626#include <stdio.h> 
     27#include <stdlib.h> 
    2728#include <unistd.h> 
    2829#include <pwd.h> 
  • lang/c/partty/trunk/src/cmd_server.cc

    r7867 r8087  
    2323#include <kazuhiki/network.h> 
    2424#include <string.h> 
     25#include <stdlib.h> 
    2526#include <string> 
    2627#include <limits.h> 
  • lang/c/partty/trunk/src/emtelnet.cc

    r7867 r8087  
    2525#include "emtelnet.h" 
    2626#include <cstring> 
     27#include <stdlib.h> 
    2728 
    2829 
  • lang/c/partty/trunk/src/ptyshell.cc

    r7867 r8087  
    3131#ifdef HAVE_UTIL_H 
    3232#include <util.h> 
     33#endif 
     34#ifdef HAVE_LIBUTIL_H 
     35#include <libutil.h> 
    3336#endif 
    3437#ifdef HAVE_PTY_H