tgt: include <sys/reg.h> only for musl

This commit is contained in:
Jürgen Buchmüller 2015-11-04 16:34:30 +01:00
parent 3d46ba2417
commit 3bd71061e6

View file

@ -2,31 +2,37 @@ The definition of __WORDSIZE is found in <sys/reg.h>
--- usr/iscsi/iscsid.h 2015-11-03 04:58:36.000000000 +0100
+++ usr/iscsi/iscsid.h 2015-11-04 16:23:25.029877334 +0100
@@ -22,6 +22,7 @@
@@ -22,6 +22,9 @@
#include <stdint.h>
#include <inttypes.h>
#include <netdb.h>
+#if !defined(__GLIBC__)
+#include <sys/reg.h>
+#endif
#include "transport.h"
#include "list.h"
--- usr/tgtd.h 2015-11-04 16:25:05.435884573 +0100
+++ usr/tgtd.h 2015-11-04 16:25:52.415887960 +0100
@@ -2,6 +2,7 @@
@@ -2,6 +2,9 @@
#ifndef __TARGET_DAEMON_H
#define __TARGET_DAEMON_H
+#if !defined(__GLIBC__)
+#include <sys/reg.h>
+#endif
#include "log.h"
#include "scsi_cmnd.h"
#include "tgtadm_error.h"
--- usr/util.h 2015-11-04 16:26:22.262890112 +0100
+++ usr/util.h 2015-11-04 16:27:01.364892931 +0100
@@ -16,6 +16,7 @@
@@ -16,6 +16,9 @@
#include <string.h>
#include <limits.h>
#include <linux/types.h>
+#if !defined(__GLIBC__)
+#include <sys/reg.h>
+#endif
#include "be_byteshift.h"