Philipp Marek wrote, On 29/08/06 11:06:
On Tuesday 29 August 2006 16:25 Benjamin M. wrote:
  
Nope.

Same error:

$ svn update
At revision 403.
$make
<snip>
waa.c: In function 'waa__update_dir':
waa.c:941: error: 'O_DIRECTORY' undeclared (first use in this function)
waa.c:941: error: (Each undeclared identifier is reported only once
waa.c:941: error: for each function it appears in.)
make: *** [waa.o] Error 1
    
Did you re-configure? Or, to be more precise, run autoconf and 
then ./configure?

  
Yep. Even tried from a fresh co...
If so, please post your config.h.
  

$ cat config.h
/* config.h.  Generated from config.h.in by configure.  */
/************************************************************************
 * Copyright (C) 2006 Philipp Marek.
 *
 * This program is free software;  you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 ************************************************************************/

#ifndef __CONFIG_H__
#define __CONFIG_H__

/* Whether the valgrind headers were found.
 * Then some initializers can specifically mark areas as initialized. */
/* #undef HAVE_VALGRIND_H */

/* If this is defined, some re-arrangements in struct-layout are made,
 * and additional bug-checking code may be included. */
/* #undef ENABLE_DEBUG */

/* Whether gcov test-coverage is wanted. */
/* #undef ENABLE_GCOV */

/* If set to 1, disable debug messages. */
/* #undef ENABLE_RELEASE */

/* unsigned 32bit type */
/* The value of AC_CV_C_UINT32_T changed between autoconf 2.59e and 2.60.
 * Since 2.60 we get "yes" instead of the type.
 * And there's no HAVE_UINT32_T ...
 * I don't seem to get that to work properly.
 * So I changed configure.in to substitute "yes" to "uint32_t". */
/* #undef HAVE_UINT32_T */
/* #if HAVE_UINT32_T
  #include <stdint.h>
  #include <inttypes.h>
#endif
*/
#define AC_CV_C_UINT32_T uint32_t

/* #undef HAVE_LINUX_TYPES_H */
/* #undef HAVE_LINUX_UNISTD_H */

/* #undef HAVE_COMPARISON_FN_T */
/* #undef HAVE_DIRFD */
/* #undef HAVE_STRUCT_STAT_ST_MTIM */
/* #undef HAVE_O_DIRECTORY */


#ifndef HAVE_COMPARISON_FN_T
typedef int (*comparison_fn_t) (__const void *, __const void *);
#endif


/* #undef HAVE_LINUX_KDEV_T_H */
#ifdef HAVE_LINUX_KDEV_T_H
#include <linux/kdev_t.h>
#else
/* Fake definitions, as reported with configure.
 * Taken from linux/kdev_t.h. */
#define MAJOR(dev)      ((dev)>>8)
#define MINOR(dev)      ((dev) & 0xff)
#define MKDEV(ma,mi)    ((ma)<<8 | (mi))
#endif

#endif
Although that shouldn't happen - configure now checks for O_DIRECTORY.
  

Reply via email to