File 0449-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
@@ -42,7 +42,7 @@
 #    include <sys/select.h>
 #  endif
 #  include <time.h>
-#  if HAVE_SYS_TIME_H
+#  ifdef HAVE_SYS_TIME_H
 #    include <sys/time.h>
 #  endif
 #  include <string.h>
-- 
2.35.3

openSUSE Build Service is sponsored by