From 6041303685872b04cc9259d7c19a05ff3de5665b Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Sat, 20 Jun 2026 15:09:06 +0200 Subject: [PATCH] [skip ci] Name unnamed enums in poll API --- main/php_poll.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/php_poll.h b/main/php_poll.h index 708d957b89e..9b878d44bd2 100644 --- a/main/php_poll.h +++ b/main/php_poll.h @@ -38,7 +38,7 @@ #define PHP_POLL_FLAG_RAW_EVENTS 0x02 /* Poll backend types. Keep in sync with io_poll.stub.php! */ -typedef enum { +typedef enum php_poll_backend_type { PHP_POLL_BACKEND_AUTO = -1, PHP_POLL_BACKEND_POLL = 0, PHP_POLL_BACKEND_EPOLL, @@ -62,7 +62,7 @@ typedef enum { #define PHP_POLL_ERROR_CODE_NOSUPPORT 11 /* Error codes */ -typedef enum { +typedef enum php_poll_error { PHP_POLL_ERR_NONE = PHP_POLL_ERROR_CODE_NONE, /* No error */ PHP_POLL_ERR_SYSTEM = PHP_POLL_ERROR_CODE_SYSTEM, /* Generic system error */ PHP_POLL_ERR_NOMEM = PHP_POLL_ERROR_CODE_NOMEM, /* Out of memory (ENOMEM) */