Make enums anonymous to fix the build with -fno-common (Clang 11, GCC 10).

This commit is contained in:
Alexey Dokuchaev 2020-10-12 07:46:17 +00:00
parent d99d008ad2
commit 3870ad6c4b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=552108

View File

@ -0,0 +1,18 @@
--- src/istgt_lu.h.orig 2012-08-27 11:46:50 UTC
+++ src/istgt_lu.h
@@ -277,13 +277,13 @@ enum {
ISTGT_LU_TASK_RESULT_IMMEDIATE = 0,
ISTGT_LU_TASK_RESULT_QUEUE_OK = 1,
ISTGT_LU_TASK_RESULT_QUEUE_FULL = 2,
-} ISTGT_LU_TASK_RESULT;
+} /* ISTGT_LU_TASK_RESULT */;
enum {
ISTGT_LU_TASK_RESPONSE = 0,
ISTGT_LU_TASK_REQPDU = 1,
ISTGT_LU_TASK_REQUPDPDU = 2,
-} ISTGT_LU_TASK_TYPE;
+} /* ISTGT_LU_TASK_TYPE */;
typedef struct istgt_lu_task_t {
int type;