mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 10:00:40 +02:00
compile fix
This commit is contained in:
parent
3796182eb1
commit
0e6d92118f
@ -7,6 +7,7 @@
|
|||||||
#include "slsDetectorServer_defs.h"
|
#include "slsDetectorServer_defs.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <sys/sysinfo.h>
|
#include <sys/sysinfo.h>
|
||||||
#include <unistd.h> // usleep
|
#include <unistd.h> // usleep
|
||||||
|
|
||||||
@ -450,7 +451,7 @@ int openFileForFlash(char *mess, FILE **flashfd, FILE **srcfd) {
|
|||||||
|
|
||||||
#ifndef VIRTUAL
|
#ifndef VIRTUAL
|
||||||
// check if its a normal file or special file
|
// check if its a normal file or special file
|
||||||
structure stat buf;
|
struct stat buf;
|
||||||
if (stat(flashDriveName, &buf) == -1) {
|
if (stat(flashDriveName, &buf) == -1) {
|
||||||
sprintf(mess,
|
sprintf(mess,
|
||||||
"Could not %s. Unable to validate if flash drive found is a "
|
"Could not %s. Unable to validate if flash drive found is a "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user