add some missing includes

avoids forward referenced enums, and includes standard type defns

Signed-off-by: Khazhismel Kumykov <khazhy@google.com>
This commit is contained in:
Khazhismel Kumykov
2019-06-14 13:58:27 -07:00
committed by Ronnie Sahlberg
parent 08cd206c4a
commit 22648d9dbf
4 changed files with 9 additions and 0 deletions

View File

@@ -25,6 +25,8 @@
#define ssize_t SSIZE_T #define ssize_t SSIZE_T
#endif #endif
#include "iscsi.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@@ -23,6 +23,9 @@
#define EXTERN #define EXTERN
#endif #endif
#include <stdint.h>
#include <sys/types.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif

View File

@@ -27,6 +27,9 @@
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include "iscsi.h"
#include "scsi-lowlevel.h"
#ifndef discard_const #ifndef discard_const
#define discard_const(ptr) ((void *)((intptr_t)(ptr))) #define discard_const(ptr) ((void *)((intptr_t)(ptr)))
#endif #endif

View File

@@ -29,6 +29,7 @@
#include "config.h" #include "config.h"
#endif #endif
#include "iscsi.h"
#include "iscsi-support.h" #include "iscsi-support.h"
/* globals between setup, tests, and teardown */ /* globals between setup, tests, and teardown */