[gjs/master.msvc: 1/3] gjs_pch.hh: Include alloca.h and syscall.h in profiler builds




commit 274e87b6cfd917a695f2002b7e74bac41202864e
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jul 7 17:58:58 2021 +0800

    gjs_pch.hh: Include alloca.h and syscall.h in profiler builds
    
    These headers are used only when the profiler is enabled.

 gjs/gjs_pch.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gjs/gjs_pch.hh b/gjs/gjs_pch.hh
index 6dcda429..aa5a736b 100644
--- a/gjs/gjs_pch.hh
+++ b/gjs/gjs_pch.hh
@@ -28,7 +28,6 @@
 #include <utility>
 #include <vector>
 
-#include <alloca.h>
 #include <assert.h>
 #include <ctype.h>
 #include <errno.h>
@@ -121,8 +120,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
-#include <syscall.h>
 #ifdef ENABLE_PROFILER
+#include <alloca.h>
+#include <syscall.h>
 #include <sysprof-capture.h>
 #endif
 #ifdef HAVE_UNISTD_H


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]