[10789] Allow use old non-builting ACE versions (pre-ACE-5.5.4) at Unix-side.

This fix build error in relamd code in result
nonexistence ACE_OFF_T in old ACE versions.
This commit is contained in:
VladimirMangos 2010-11-28 03:20:36 +03:00
parent 0c8a7c3826
commit 20cdcd4280
2 changed files with 8 additions and 1 deletions

View file

@ -97,6 +97,13 @@
#include <ace/Thread_Mutex.h> #include <ace/Thread_Mutex.h>
#include <ace/OS_NS_arpa_inet.h> #include <ace/OS_NS_arpa_inet.h>
// Old ACE versions (pre-ACE-5.5.4) not have this type (add for allow use at Unix side external old ACE versions)
#if PLATFORM != PLATFORM_WINDOWS
# ifndef ACE_OFF_T
typedef off_t ACE_OFF_T;
# endif
#endif
#if PLATFORM == PLATFORM_WINDOWS #if PLATFORM == PLATFORM_WINDOWS
# if !defined (FD_SETSIZE) # if !defined (FD_SETSIZE)
# define FD_SETSIZE 4096 # define FD_SETSIZE 4096

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10788" #define REVISION_NR "10789"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__