fs_shell: Prevent inclusion of BSD headers; fix DeviceOpener.

This commit is contained in:
Augustin Cavalier
2020-05-10 12:44:46 -04:00
parent c74c347353
commit 0b5d48563d
11 changed files with 29 additions and 57 deletions
+8 -1
View File
@@ -6,7 +6,14 @@
#ifndef DEVICEOPENER_H
#define DEVICEOPENER_H
#include "system_dependencies.h"
#ifdef FS_SHELL
# include "fssh_api_wrapper.h"
#else
# include <fcntl.h>
# include <sys/types.h>
# include <SupportDefs.h>
#endif
class DeviceOpener {
public: