From a85b54ab54d77fd8cfbd7aef7091e4510b2226d5 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Fri, 4 Sep 2015 20:37:00 +0300 Subject: [PATCH] zdtm: Fix building for @_BSD_SOURCE redefinition Travis testing engine complained about @_BSD_SOURCE which is not the case on my build environment. Anyway lets do a safe thing -- conditional definition. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- test/zdtm/lib/fs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/zdtm/lib/fs.h b/test/zdtm/lib/fs.h index c574709dc..972c49b4a 100644 --- a/test/zdtm/lib/fs.h +++ b/test/zdtm/lib/fs.h @@ -1,7 +1,10 @@ #ifndef ZDTM_FS_H_ #define ZDTM_FS_H_ -#define _BSD_SOURCE +#ifndef _BSD_SOURCE +# define _BSD_SOURCE +#endif + #include #include