Ticket #265 (closed defect: fixed)

Opened 1 month ago

Last modified 2 days ago

Compile error in DefaultPolicyDelegate.cpp

Reported by: ppedriana Assigned to: mbensi
Priority: major Milestone: Galekid
Component: Bug Fix Version: 1.0
Keywords: Cc:
Number of hours worked: % Complete: 00
Number of hours remaining:

Description

DefaultPolicyDelegate.cpp includes code that is specific to the Unix family of operating systems:

#include <unistd.h> <-- Not a standard C header.

S_ISDIR <-- Not a standard C identifier.

A fix which allows the code to work on Microsoft-derived systems is the following:

#ifdef _MSC_VER

#ifndef S_ISDIR

#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)

#endif

#else

#include <unistd.h>

#endif

Change History

08/19/08 09:49:56 changed by mbensi

  • status changed from new to closed.
  • resolution set to fixed.

fixed in revision 442