Changeset 184

Show
Ignore:
Timestamp:
06/11/07 08:46:30 (1 year ago)
Author:
takkaria
Message:

Fix Windows compilation problems.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/h-basic.h

    r182 r184  
    4747# endif 
    4848 
     49 
     50 
     51/* 
     52 * Everyone except RISC OS has fcntl.h 
     53 */ 
     54#ifndef RISCOS 
     55# define HAVE_FCNTL_H 
     56#endif 
    4957 
    5058#endif /* HAVE_CONFIG_H */ 
     
    7078/* Without autoconf, turn on some things */ 
    7179# ifndef HAVE_CONFIG_H 
    72 #  define HAVE_FCNTL_H 
    7380#  define HAVE_DIRENT_H 
    7481# endif 
  • trunk/src/z-file.c

    r182 r184  
    682682errr fd_lock(int fd, int what) 
    683683{ 
    684 #ifdef HAVE_FCNTL_H 
     684#if defined(HAVE_FCNTL_H) && defined(SET_UID) 
    685685 
    686686        struct flock lock;