diff options
author | Alasdair Kergon <agk@redhat.com> | 2005-01-27 16:16:54 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2005-01-27 16:16:54 +0000 |
commit | 3d2aecf0ae8f0627e2f5fdfd808f50dba27c08e1 (patch) | |
tree | 26788c32562e8d272f97d815cc7acbfb04200e37 /libdm/libdm-file.c | |
parent | 4608bcdccf59aa283a9bc06538e264f6b094308f (diff) | |
download | lvm2-3d2aecf0ae8f0627e2f5fdfd808f50dba27c08e1.tar.gz lvm2-3d2aecf0ae8f0627e2f5fdfd808f50dba27c08e1.tar.xz lvm2-3d2aecf0ae8f0627e2f5fdfd808f50dba27c08e1.zip |
Add option to compile without ioctl for testing.
Diffstat (limited to 'libdm/libdm-file.c')
-rw-r--r-- | libdm/libdm-file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libdm/libdm-file.c b/libdm/libdm-file.c index 5295b9e9..06f5628f 100644 --- a/libdm/libdm-file.c +++ b/libdm/libdm-file.c @@ -19,7 +19,10 @@ #include <sys/file.h> #include <fcntl.h> #include <dirent.h> -#include <malloc.h> + +#ifdef linux +# include <malloc.h> +#endif static int _create_dir_recursive(const char *dir) { |