diff options
Diffstat (limited to 'hw/xfree86/dummylib/fatalerror.c')
-rw-r--r-- | hw/xfree86/dummylib/fatalerror.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/hw/xfree86/dummylib/fatalerror.c b/hw/xfree86/dummylib/fatalerror.c new file mode 100644 index 000000000..3c482b480 --- /dev/null +++ b/hw/xfree86/dummylib/fatalerror.c @@ -0,0 +1,23 @@ +/* $XFree86: xc/programs/Xserver/hw/xfree86/dummylib/fatalerror.c,v 1.1 2000/02/13 03:06:38 dawes Exp $ */ + +#include "X.h" +#include "os.h" +#include "xf86.h" +#include "xf86Priv.h" + +/* + * Utility functions required by libxf86_os. + */ + +void +FatalError(const char *f, ...) +{ + va_list args; + + va_start(args, f); + fprintf(stderr, "Fatal Error:\n"); + vfprintf(stderr, f, args); + va_end(args); + exit(1); +} + |