provide private uuid_le type to fix sles11 build

OBS-URL: https://build.opensuse.org/package/show/Virtualization/hyper-v?expand=0&rev=84
This commit is contained in:
Olaf Hering 2014-01-23 16:45:34 +00:00 committed by Git OBS Bridge
parent 13b3a21a90
commit 94c31de49b
2 changed files with 4 additions and 5 deletions

View File

@ -26,7 +26,10 @@
#define _HYPERV_H
#include <linux/types.h>
#include <linux/uuid.h>
/* from linux/uuid.h */
typedef struct {
__u8 b[16];
} uuid_le;
/*

View File

@ -95,7 +95,6 @@ gcc \
-DCN_VSS_IDX=0xa \
-DCN_VSS_VAL=0x1 \
-o %{hv_vss_daemon}
%if %{use_systemd}
gcc \
$RPM_OPT_FLAGS \
-Wno-unused-variable \
@ -105,7 +104,6 @@ gcc \
%{hv_fcopy_daemon}.c \
-include %{hv_kvp_daemon}.h \
-o %{hv_fcopy_daemon}
%endif
%install
%if %{use_systemd}
@ -118,9 +116,7 @@ mkdir -p $RPM_BUILD_ROOT${bindir}
mkdir -p $RPM_BUILD_ROOT%{helper_dir}/bin
install -m755 %{hv_kvp_daemon} $RPM_BUILD_ROOT${bindir}
install -m755 %{hv_vss_daemon} $RPM_BUILD_ROOT${bindir}
%if %{use_systemd}
install -m755 %{hv_fcopy_daemon} $RPM_BUILD_ROOT${bindir}
%endif
cp -avL %{S:20} $RPM_BUILD_ROOT%{helper_dir}/bin/hv_get_dhcp_info
cp -avL %{S:21} $RPM_BUILD_ROOT%{helper_dir}/bin/hv_get_dns_info
cp -avL %{S:22} $RPM_BUILD_ROOT%{helper_dir}/bin/hv_set_ifconfig