From: Simon Horman Date: Thu, 22 Sep 2011 12:24:12 +0000 (+0900) Subject: Add fallback definition of SIG_ATOMIC_MAX X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c2c90570b53b715bf5f51d12b1987fd87db3bbf;p=openvswitch Add fallback definition of SIG_ATOMIC_MAX Android appears to lack SIG_ATOMIC_MAX which is only used in fatal-signal.c. Observed when compiling using the Android NDK r6b (Android API level 13). Patch based on a suggestion by Ben Pfaff --- diff --git a/lib/fatal-signal.c b/lib/fatal-signal.c index c7e87dbe..a6ce1b78 100644 --- a/lib/fatal-signal.c +++ b/lib/fatal-signal.c @@ -32,6 +32,12 @@ #include "util.h" #include "vlog.h" +#include "type-props.h" + +#ifndef SIG_ATOMIC_MAX +#define SIG_ATOMIC_MAX TYPE_MAXIMUM(sig_atomic_t) +#endif + VLOG_DEFINE_THIS_MODULE(fatal_signal); /* Signals to catch. */