[Git][ghc/ghc][wip/backports-9.0] testsuite: Add missing #include on <stdlib.h>

Ben Gamari gitlab at gitlab.haskell.org
Thu Dec 3 17:23:47 UTC 2020



Ben Gamari pushed to branch wip/backports-9.0 at Glasgow Haskell Compiler / GHC


Commits:
d4a670bb by Ben Gamari at 2020-12-03T12:23:42-05:00
testsuite: Add missing #include on <stdlib.h>

This otherwise fails on newer Clangs, which warn
more aggressively on undeclared symbols.

(cherry picked from commit 3d7db1488c4bd7764e8b1fe3cfde4c5a548cde16)

- - - - -


1 changed file:

- testsuite/tests/concurrent/should_run/conc059_c.c


Changes:

=====================================
testsuite/tests/concurrent/should_run/conc059_c.c
=====================================
@@ -1,6 +1,7 @@
 #include "HsFFI.h"
 #include "conc059_stub.h"
 #include <unistd.h>
+#include <stdlib.h>
 #include <stdio.h>
 #if mingw32_HOST_OS
 #include <windows.h>



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d4a670bb9f8e2dcfabde4c3b84bcd234b19583c0

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d4a670bb9f8e2dcfabde4c3b84bcd234b19583c0
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20201203/16ed3928/attachment.html>


More information about the ghc-commits mailing list