<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57226>57226</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Build error in compiler-rt/lib/fuzzer on FreeBSD 14 64 bit ARM
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          VoxSciurorum
      </td>
    </tr>
</table>

<pre>
    main, 9ad0ace2ba52b2194090a0ec4dd980d604ea74b0, FreeBSD 14 on 64 bit ARM

compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp needs to include <signal.h>, at least on this version of BSD

```
/home/jfc/src/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp:29:56: error: use of undeclared identifier 'SIGINT'
  if (WIFSIGNALED(exit_code) && WTERMSIG(exit_code) == SIGINT)
                                                       ^
1 error generated.
*** [all] Error code 6
```

This patch works on my system.  I have not tested it on Linux.

```
diff --git a/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp
index 7e22f0e9fe8f..717af11bc79f 100644
--- a/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp
@@ -13,6 +13,7 @@
 #include "FuzzerCommand.h"
 #include "FuzzerInternal.h"
 
+#include <signal.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/wait.h>
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylVUtv2zAM_jX2hYghy--DD02TDAG6HdZuOw6yRcfqZDuQ5LbZrx9tp2uxbh3WBQQjiV_IT3wo1SBPZSdU7_FLKIRkokZeiYRXPCxiVjDBsI6lLHImUxajyOKKTdidQVxfbyCMYeghjaFSDi4-vvfYxmMXi66H7qg0mpVxHt9pVZFuxu_f0dBiNy8-OaWvVD8-BPXxCD2itOAGUH2tR4ngRZdWHXqhg9aLtlNc4UCjsG6K6lpl4Q6NVbQZGiA-z8N7KTvLsuW7duiQvm6bmrQ1k9b6rlsdzXCL9UTyXyl70QUvSCUpKUBjBjMtRosTobGXWGthUIKS2DvVKDTg8ex6_27_4YYWCzUA1dBx_mW_I8uHi6vthnb4oNzXepBEuSBrSgJfbrYf3xPmhTnakMCj3-LR75s-XrJdfh8uN4ID9miEQxk8pvIsBF0Lrb1kA9sZOfGB9Pf5n_XNVLOjcHUL94P5Zqc6diewJ-uwCwD20Io7hH5w4JDOKHNzrZeMv1JeqZoGVqsDwcUbCgnVW6o_R1ZU5QfIkPOGYdFg3gRBFmaiCcOqzooGQsbSOF7Aq9XqTfweE79e5D_oejEjgVUY0Tyl1FjreZXBYjh3jsejn0PI-eLscug60UuaRc5fge17h2aZ2SfcE_3oD8P90iHZnaRrvWI_WbqqOx3R_g10L5R7hvmle3wswzRleZTlSerLMpJFVAjfKaexXI9Ky_MoqB7-nPapUZ89jE-voj8aXbbOHS29DgQnoUZtxyogZ-dX6OVjpKwdceKeZJynfls2iUwjVmGNcSRFkjcRFkxKEdNZ2KShr0WF2pY0lZT6Hu9hdjGVIdn4quSMc5aHeZgkLEkDWYk8CqNQVFmSxYJT9ZH-C3Qw8QgGc_BNOVOqxoMlo1bW2SejsFP5EOdw5F-Mrh1M-Xl4uK7VSMkaO3-OX878fwDYsete">