Changeset 377 for trunk/src/sh_files.c


Ignore:
Timestamp:
Nov 5, 2011, 11:57:44 PM (13 years ago)
Author:
katerina
Message:

Fix for ticket #272 (Compile errors on RHEL5, gcc 4.1.2).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_files.c

    r373 r377  
    1919
    2020#include "config_xor.h"
     21
     22#if defined(HAVE_PTHREAD_MUTEX_RECURSIVE)
     23#define _XOPEN_SOURCE 500
     24#endif
    2125
    2226#include <stdio.h>
     
    14551459    }
    14561460 out:
     1461  ; /* 'label at end of compound statement' */
    14571462  SH_MUTEX_RECURSIVE_UNLOCK(mutex_zdirs);
    14581463
     
    18811886  int             rdepth = 0;
    18821887  int             class  = 0;
    1883   int             rdepth_next;
     1888  volatile int    rdepth_next;
    18841889  int             class_next;
    18851890  volatile int    file_class_next;
     
    27272732#endif
    27282733 out:
     2734  ; /* 'label at end of compound statement' */
    27292735  SH_MUTEX_RECURSIVE_UNLOCK(mutex_zdirs);
    27302736  return retval;
     
    27742780#endif
    27752781 out:
     2782  ; /* 'label at end of compound statement' */
    27762783  SH_MUTEX_UNLOCK(mutex_zfiles);
    27772784  return retval;
Note: See TracChangeset for help on using the changeset viewer.