Commit 60413036858 for php.net
commit 6041303685872b04cc9259d7c19a05ff3de5665b
Author: Ilija Tovilo <ilija.tovilo@me.com>
Date: Sat Jun 20 15:09:06 2026 +0200
[skip ci] Name unnamed enums in poll API
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) */