mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user