diff --git a/src/include/access/gin.h b/src/include/access/gin.h
index 75a86c4..36a6c6b 100644
--- a/src/include/access/gin.h
+++ b/src/include/access/gin.h
@@ -48,13 +48,13 @@ typedef struct GinStatsData
 } GinStatsData;
 
 /* ginlogic.c */
-enum
+enum GinLogicValueEnum
 {
 	GIN_FALSE = 0,			/* item is present / matches */
 	GIN_TRUE = 1,			/* item is not present / does not match */
 	GIN_MAYBE = 2			/* don't know if item is present / don't know if
 							 * matches */
-} GinLogicValueEnum;
+};
 
 typedef char GinLogicValue;
 
