File 0939-fix-ifdef-for-preprocessor-variables.patch of Package erlang
From 287a807a3275b53dfeb8acf5d4deb34cc02f2eb7 Mon Sep 17 00:00:00 2001
From: Paul Swartz <paul@paulswartz.net>
Date: Wed, 3 Jan 2024 10:19:37 -0500
Subject: [PATCH 2/3] fix: `ifdef` for preprocessor variables
---
erts/lib_src/common/erl_misc_utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/erts/lib_src/common/erl_misc_utils.c b/erts/lib_src/common/erl_misc_utils.c
index 5f011b8b2e..adae782b06 100644
--- a/erts/lib_src/common/erl_misc_utils.c
+++ b/erts/lib_src/common/erl_misc_utils.c
@@ -45,7 +45,7 @@
# include <sys/time.h>
# include <time.h>
# else
-# if HAVE_SYS_TIME_H
+# ifdef HAVE_SYS_TIME_H
# include <sys/time.h>
# else
# include <time.h>
--
2.35.3