depot/pkgs/development/compilers/ghc/9.4.6-bytestring-posix-source.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

15 lines
479 B
Diff

Make sure that the appropriate feature flags are set when
Rts.h is included, so that clockid_t is defined.
diff --git a/cbits/is-valid-utf8.c b/cbits/is-valid-utf8.c
index 01b3b41..c69596a 100644
--- a/libraries/bytestring/cbits/is-valid-utf8.c
+++ b/libraries/bytestring/cbits/is-valid-utf8.c
@@ -29,6 +29,7 @@ SUCH DAMAGE.
*/
#pragma GCC push_options
#pragma GCC optimize("-O2")
+#include "rts/PosixSource.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>