Changeset 4836 for zzuf


Ignore:
Timestamp:
Aug 5, 2012, 2:24:53 PM (7 years ago)
Author:
Sam Hocevar
Message:

build: fix compilation by including <wchar.h> and checking for regwexec.

Location:
zzuf/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/configure.ac

    r4809 r4836  
    6666
    6767AC_CHECK_FUNCS(setenv waitpid setrlimit gettimeofday fork kill pipe _pipe)
     68AC_CHECK_FUNCS(regexec regwexec)
    6869AC_CHECK_FUNCS(dup dup2 ftello fseeko _IO_getc getline getdelim fgetln map_fd memalign posix_memalign aio_read accept bind connect socket readv pread recv recvfrom recvmsg mmap valloc sigaction getpagesize)
    6970AC_CHECK_FUNCS(getc_unlocked getchar_unlocked fgetc_unlocked fread_unlocked fgets_unlocked)
  • zzuf/trunk/msvc/config.h

    r4834 r4836  
    8282#define HAVE_RECVFROM 1
    8383/* #undef HAVE_RECVMSG */
    84 /* #undef HAVE_REGEX_H */
     84/* #undef HAVE_REGEXEC */
    8585#define HAVE_REGEX_H 1
     86#define HAVE_REGWEXEC 1
    8687#define HAVE_REOPENFILE 1
    8788/* #undef HAVE_SETENV */
  • zzuf/trunk/src/common/fd.c

    r4832 r4836  
    200200int _zz_mustwatch(char const *file)
    201201{
    202 #if defined HAVE_REGEX_H
     202#if defined HAVE_REGEXEC
    203203    if(has_include && regexec(&re_include, file, 0, NULL, 0) == REG_NOMATCH)
    204204        return 0; /* not included: ignore */
     
    215215int _zz_mustwatchw(wchar_t const *file)
    216216{
    217 #if defined HAVE_REGEX_H
     217#if defined HAVE_REGWEXEC
    218218    if(has_include && regwexec(&re_include, file, 0, NULL, 0) == REG_NOMATCH)
    219219        return 0; /* not included: ignore */
  • zzuf/trunk/src/common/fd.h

    r4832 r4836  
    1414 *  fd.h: file descriptor functions
    1515 */
     16
     17#include <stdint.h>
     18#include <wchar.h>
    1619
    1720extern void _zz_include(char const *);
Note: See TracChangeset for help on using the changeset viewer.