Changeset 4791


Ignore:
Timestamp:
12/09/11 00:23:18 (18 months ago)
Author:
pterjan
Message:

Include util.h or libutil.h depending on what is available, should help building on FreeBSD

Location:
neercs/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/configure.ac

    r4790 r4791  
    7171  AC_MSG_ERROR([you need libcaca version 0.99.beta17 or later])]) 
    7272 
    73 AC_CHECK_HEADERS(stdio.h pty.h sys/ioctl.h sys/ptrace.h sys/stat.h sys/syscall.h sys/user.h sys/wait.h linux/kdev_t.h linux/major.h security/pam_appl.h security/pam_misc.h) 
     73AC_CHECK_HEADERS(libutil.h util.h stdio.h pty.h sys/ioctl.h sys/ptrace.h sys/stat.h sys/syscall.h sys/user.h sys/wait.h linux/kdev_t.h linux/major.h security/pam_appl.h security/pam_misc.h) 
    7474 
    7575case $host_os in 
  • neercs/trunk/src/term.c

    r4366 r4791  
    1919#if defined HAVE_PTY_H 
    2020#   include <pty.h>             /* for openpty and forkpty */ 
    21 #else 
    22 #   include <util.h>            /* for OS X */ 
     21#endif 
     22#if defined HAVE_UTIL_H 
     23#   include <util.h>            /* for OS X, OpenBSD and NetBSD */ 
     24#endif 
     25#if defined HAVE_LIBUTIL_H 
     26#   include <libutil.h>         /* for FreeBSD */ 
    2327#endif 
    2428#include <unistd.h> 
Note: See TracChangeset for help on using the changeset viewer.