Changeset 194

Show
Ignore:
Timestamp:
03/19/2005 02:52:12 PM (4 years ago)
Author:
jan
Message:

check for pathconf

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.in

    r191 r194  
    309309                  strdup strerror strstr strtol sendfile  getopt socket \ 
    310310                  gethostbyname poll sigtimedwait epoll_ctl getrlimit chroot \ 
    311                   getuid select signal\ 
     311                  getuid select signal pathconf \ 
    312312                  writev sigaction sendfile64 send_file kqueue port_create localtime_r]) 
    313313 
  • trunk/src/mod_dirlisting.c

    r192 r194  
    55#include <assert.h> 
    66#include <errno.h> 
     7#include <stdio.h> 
     8#include <unistd.h> 
    79 
    810#include "base.h" 
     
    379381 
    380382#ifdef HAVE_PATHCONF 
    381         name_max = pathconf(dir->ptr, PC_NAME_MAX); 
     383        name_max = pathconf(dir->ptr, _PC_NAME_MAX); 
    382384#else 
    383385        name_max = NAME_MAX;