diff --git a/src/bin/e_fm/e_fm_ipc.c b/src/bin/e_fm/e_fm_ipc.c index 178da3f99..1f62e4fac 100644 --- a/src/bin/e_fm/e_fm_ipc.c +++ b/src/bin/e_fm/e_fm_ipc.c @@ -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; diff --git a/src/bin/e_fm_op.c b/src/bin/e_fm_op.c index dc2a739b3..eb216346f 100644 --- a/src/bin/e_fm_op.c +++ b/src/bin/e_fm_op.c @@ -21,10 +21,6 @@ extern "C" void *alloca(size_t); #endif -#ifndef strdupa -# define strdupa(str) strcpy(alloca(strlen(str) + 1), str) -#endif - #include #include #include @@ -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