Просмотр исходного кода

Fix the build for linux driver 1.8

Don Porter 6 лет назад
Родитель
Сommit
d5fcb00f8b
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      Pal/src/host/Linux-SGX/sgx-driver/graphene-sgx.h

+ 5 - 3
Pal/src/host/Linux-SGX/sgx-driver/graphene-sgx.h

@@ -16,11 +16,13 @@
 #define __packed __attribute__((packed))
 #endif
 
+#if SDK_DRIVER_VERSION > KERNEL_VERSION(1, 8, 0)
 #include "linux-sgx-driver/sgx_user.h"
+#else // 1.8
+#include "linux-sgx-driver/isgx_user.h"
+#endif 
 
-#endif
-
-#if SDK_DRIVER_VERSION < KERNEL_VERSION(1, 8, 0)
+#else // SDK_DRIVER_VERSION < KERNEL_VERSION(1, 8, 0)
 
 #include "linux-sgx-driver/isgx_user.h"