Commit 0f1b618c authored by Nicolas Chauvet's avatar Nicolas Chauvet
Browse files

Avoid calling exit in uthash

This patch avoid to call exit() in uthash for better error handling

Fix https://github.com/NVIDIA/libglvnd/issues/106
Patch suggested by https://github.com/tbeu

Signed-off-by: Nicolas Chauvet's avatarNicolas Chauvet <kwizart@gmail.com>
parent f556baa2
......@@ -12,6 +12,13 @@
*/
#include "glvnd_pthread.h"
/*
* Macro to handle uthash_fatal error - Avoid using exit()
*/
#include "../src/util/app_error_check.h"
#define uthash_fatal(msg) glvndAppErrorCheckReportError("Error: %s\n", msg); break
#include "uthash.h"
/*
......
......@@ -59,6 +59,7 @@ libEGL_la_CFLAGS += $(PTHREAD_CFLAGS)
libEGL_la_LIBADD = -ldl
libEGL_la_LIBADD += -lm
libEGL_la_LIBADD += $(GL_DISPATCH_DIR)/libGLdispatch.la
libEGL_la_LIBADD += $(UTIL_DIR)/libapp_error_check.la
libEGL_la_LIBADD += $(UTIL_DIR)/libtrace.la
libEGL_la_LIBADD += $(UTIL_DIR)/libglvnd_pthread.la
libEGL_la_LIBADD += $(UTIL_DIR)/libutils_misc.la
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment