Removed comment about STM32F4 limitations
[fw/stlink] / src / stlink-sg.c
index f8865e1e4e6b9e061836db44d59e6541be122303..b8220de133bf2c26a5f6b92338c87b288bb8e09c 100644 (file)
 #include <sys/stat.h>
 #include <sys/mman.h>
 
+#include "stlink-common.h"
+
+#if CONFIG_USE_LIBSG
 // sgutils2 (apt-get install libsgutils2-dev)
 #include <scsi/sg_lib.h>
 #include <scsi/sg_pt.h>
-
-#include "stlink-common.h"
 #include "stlink-sg.h"
+#endif
 
 
 // Suspends execution of the calling process for