ok - strdupa make sure its defined after other includes in case,.. and

add to e_fm_ipc.c...



SVN revision: 81036
This commit is contained in:
Carsten Haitzler 2012-12-16 01:17:45 +00:00
parent 53d73af873
commit 5ab8396f24
2 changed files with 8 additions and 4 deletions

View File

@ -47,6 +47,10 @@
#define DEF_ROUND_TRIP_TOLERANCE 0.01
#define DEF_MOD_BACKOFF 0.2
#ifndef strdupa
# define strdupa(str) strcpy(alloca(strlen(str) + 1), str)
#endif
typedef struct _E_Dir E_Dir;
typedef struct _E_Fop E_Fop;
typedef struct _E_Mod E_Mod;

View File

@ -21,10 +21,6 @@ extern "C"
void *alloca(size_t);
#endif
#ifndef strdupa
# define strdupa(str) strcpy(alloca(strlen(str) + 1), str)
#endif
#include <math.h>
#include <unistd.h>
#include <stdio.h>
@ -48,6 +44,10 @@ void *alloca(size_t);
#undef E_TYPEDEFS
#include "e_fm_op.h"
#ifndef strdupa
# define strdupa(str) strcpy(alloca(strlen(str) + 1), str)
#endif
#define READBUFSIZE 65536
#define COPYBUFSIZE 16384
#define REMOVECHUNKSIZE 4096