Skip to content

Commit

Permalink
It's ok to include stdlib unconditionally
Browse files Browse the repository at this point in the history
While here re-arrange include order, sys; std; caml.
  • Loading branch information
haesbaert committed Mar 7, 2023
1 parent 3f3aab4 commit 53e1080
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib_eio_posix/eio_posix_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@
#ifdef __linux__
#include <sys/random.h>
#endif
#include <errno.h>
#include <sys/uio.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <string.h>

#ifndef __linux__
# include <stdlib.h>
#endif
#include <stdlib.h>

#include <caml/mlvalues.h>
#include <caml/memory.h>
Expand Down

0 comments on commit 53e1080

Please sign in to comment.