Changeset 377 for trunk


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).

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r373 r377  
    1212dnl start
    1313dnl
    14 AM_INIT_AUTOMAKE(samhain, 3.0.0)
     14AM_INIT_AUTOMAKE(samhain, 3.0.0a)
    1515AC_DEFINE([SAMHAIN], 1, [Application is samhain])
    1616AC_CANONICAL_HOST
  • trunk/docs/Changelog

    r375 r377  
    1 3.0.0:
     13.0.0a:
     2        * Fix compile-time issues on RHEL5 (reported by Thomas)
     3
     43.0.0 (01-10-2011):
    25        * Add support for the inotify API
    36        * If --disable-shellexpand is used, also disable setting
  • 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;
  • trunk/src/sh_inotify.c

    r373 r377  
    666666    }
    667667 retpoint:
     668  ; /* 'label at end of compound statement' */
    668669  SH_MUTEX_UNLOCK(mutex_watches);
    669670  return retval;
Note: See TracChangeset for help on using the changeset viewer.