Remove the atexit() hack from OpenGL drivers
now that atexit() is behaving like on Linux. ok matthew@, millert@, dcoppa@, miod@
This commit is contained in:
parent
a7567aa7ca
commit
27ccb204c3
@ -1,12 +0,0 @@
|
||||
/**
|
||||
** Hack for OpenBSD atexit
|
||||
** Author: Matthew Dempsky <matthew@dempsky.org>
|
||||
**/
|
||||
extern int __cxa_atexit(void (*)(void *), void *, void *);
|
||||
extern void *__dso_handle;
|
||||
|
||||
int __attribute__((visibility("hidden")))
|
||||
atexit(void (*fn)(void))
|
||||
{
|
||||
return (__cxa_atexit((void (*)(void *))fn, 0, &__dso_handle));
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.2 2013/09/05 15:12:09 jsg Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2013/12/30 18:32:48 matthieu Exp $
|
||||
|
||||
LIB= mesa
|
||||
|
||||
@ -14,7 +14,6 @@ CPPFLAGS+= \
|
||||
|
||||
SRCS= ${MESA_SOURCES} \
|
||||
${MESA_CXX_SOURCES} \
|
||||
${ASM_SOURCES} \
|
||||
_atexit.c
|
||||
${ASM_SOURCES}
|
||||
|
||||
.include <bsd.xorg.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.4 2013/09/05 15:12:09 jsg Exp $
|
||||
# $OpenBSD: Makefile,v 1.5 2013/12/30 18:32:48 matthieu Exp $
|
||||
|
||||
LIB= mesagallium
|
||||
|
||||
@ -12,7 +12,6 @@ CPPFLAGS+= \
|
||||
|
||||
SRCS= ${MESAGALLIUM_SOURCES} \
|
||||
${MESAGALLIUM_CXX_SOURCES} \
|
||||
${ASM_SOURCES} \
|
||||
_atexit.c
|
||||
${ASM_SOURCES}
|
||||
|
||||
.include <bsd.xorg.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user