From 822e47999d9ef94291e8e24db5ea928dd3c5d8e2 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Thu, 22 Sep 2016 20:22:56 -0700 Subject: [PATCH] use abort() instead of __builtin_abort This is more portable to different compilers, but should otherwise have the same effect. Signed-off-by: Christoph Hellwig Signed-off-by: Keith Busch --- json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json.c b/json.c index e9fcf077..e127aa25 100644 --- a/json.c +++ b/json.c @@ -8,7 +8,7 @@ static inline void fail_and_notify(void) { fprintf(stderr, "Allocation of memory for json object failed, aborting.\n"); - __builtin_abort(); + abort(); } struct json_object *json_create_object(void) -- 2.51.0