mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-28 07:49:59 +00:00
os: add busfault dummy struct
This should make the busfault structs happy on both sides of the ifdef Signed-off-by: John Studnicka <contact@zentec.dev>
This commit is contained in:
committed by
Enrico Weigelt
parent
06467f469f
commit
cf7c358d5b
@@ -29,12 +29,12 @@
|
||||
|
||||
#include "misc.h" /* for TRUE/FALSE */
|
||||
|
||||
typedef void (*busfault_notify_ptr) (void *context);
|
||||
|
||||
#ifdef HAVE_SIGACTION
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef void (*busfault_notify_ptr) (void *context);
|
||||
|
||||
struct busfault *
|
||||
busfault_register_mmap(void *addr, size_t size, busfault_notify_ptr notify, void *context);
|
||||
|
||||
@@ -49,6 +49,24 @@ busfault_init(void);
|
||||
|
||||
#else
|
||||
|
||||
struct busfault;
|
||||
|
||||
static inline struct busfault *
|
||||
busfault_register_mmap(void *addr, size_t size, busfault_notify_ptr notify, void *context)
|
||||
{
|
||||
(void) addr;
|
||||
(void) size;
|
||||
(void) notify;
|
||||
(void) context;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline void
|
||||
busfault_unregister(struct busfault *busfault)
|
||||
{
|
||||
(void) busfault;
|
||||
}
|
||||
|
||||
static inline void busfault_check(void) {}
|
||||
static inline Bool busfault_init(void) { return FALSE; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user