build: Require <caml/unixsupport.h>

Require <caml/unixsupport.h> (an OCaml header file) and remove
alternate defintions of ‘Nothing’ and ‘unix_error’ which are defined
in this header file.

We require OCaml >= 3.11 which has this header file, so there is no
need to test for it or provide alternative definitions.

Thanks: Pino Toscano.
This commit is contained in:
Richard W.M. Jones
2017-07-18 18:40:55 +01:00
parent 318ca68408
commit ffdcb7cfeb
8 changed files with 1 additions and 49 deletions

View File

@@ -34,13 +34,7 @@
#include <caml/mlvalues.h>
#include <caml/printexc.h>
#include <caml/signals.h>
#ifdef HAVE_CAML_UNIXSUPPORT_H
#include <caml/unixsupport.h>
#else
#define Nothing ((value) 0)
extern void unix_error (int errcode, char * cmdname, value arg) Noreturn;
#endif
#include "guestfs-c.h"