Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
c4f43d26
Commit
c4f43d26
authored
Mar 27, 2012
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iscsi: use <sys/filio.h> on Solaris.
Needed for FIONREAD.
parent
d77d7e32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
ccan/iscsi/socket.c
ccan/iscsi/socket.c
+4
-0
config.h
config.h
+1
-0
tools/configurator/configurator.c
tools/configurator/configurator.c
+2
-0
No files found.
ccan/iscsi/socket.c
View file @
c4f43d26
...
...
@@ -15,6 +15,7 @@
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
...
...
@@ -31,6 +32,9 @@
#include "iscsi.h"
#include "iscsi-private.h"
#include "dlinklist.h"
#if HAVE_SYS_FILIO_H
#include <sys/filio.h>
#endif
static
void
set_nonblocking
(
int
fd
)
{
...
...
config.h
View file @
c4f43d26
...
...
@@ -46,6 +46,7 @@
#define HAVE_SECTION_START_STOP 1
#define HAVE_STACK_GROWS_UPWARDS 0
#define HAVE_STATEMENT_EXPR 1
#define HAVE_SYS_FILIO_H 0
#define HAVE_TYPEOF 1
#define HAVE_UTIME 1
#define HAVE_WARN_UNUSED_RESULT 1
...
...
tools/configurator/configurator.c
View file @
c4f43d26
...
...
@@ -200,6 +200,8 @@ static struct test tests[] = {
"}
\n
"
},
{
"HAVE_STATEMENT_EXPR"
,
INSIDE_MAIN
,
NULL
,
"return ({ int x = argc; x == argc ? 0 : 1; });"
},
{
"HAVE_SYS_FILIO_H"
,
OUTSIDE_MAIN
,
NULL
,
/* Solaris needs this for FIONREAD */
"#include <sys/filio.h>
\n
"
},
{
"HAVE_TYPEOF"
,
INSIDE_MAIN
,
NULL
,
"__typeof__(argc) i; i = argc; return i == argc ? 0 : 1;"
},
{
"HAVE_UTIME"
,
DEFINES_FUNC
,
NULL
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment