|
Lines 49-55
Link Here
|
| 49 |
# undef ioMSecs |
49 |
# undef ioMSecs |
| 50 |
#endif |
50 |
#endif |
| 51 |
|
51 |
|
| 52 |
#include <stdio.h> |
52 |
// we need stdio.h to override glibc's dprintf function |
|
|
53 |
// since new glibc has this function with different interface |
| 54 |
#include <features.h> |
| 55 |
#ifdef __USE_XOPEN2K8 |
| 56 |
# include <stdio.h> |
| 57 |
#endif |
| 58 |
|
| 53 |
#include <time.h> |
59 |
#include <time.h> |
| 54 |
#include <sys/time.h> |
60 |
#include <sys/time.h> |
| 55 |
#include <sys/types.h> |
61 |
#include <sys/types.h> |
|
Lines 68-82
Link Here
|
| 68 |
#endif |
74 |
#endif |
| 69 |
|
75 |
|
| 70 |
|
76 |
|
| 71 |
static void dprintf(const char *fmt, ...) |
|
|
| 72 |
{ |
| 73 |
#if (DEBUG) |
77 |
#if (DEBUG) |
| 74 |
va_list ap; |
78 |
# define dprintf(...) printf(__VA_ARGS__) |
| 75 |
va_start(ap, fmt); |
79 |
#else |
| 76 |
vprintf(fmt, ap); |
80 |
# define dprintf(...) |
| 77 |
va_end(ap); |
|
|
| 78 |
#endif |
81 |
#endif |
| 79 |
} |
|
|
| 80 |
|
82 |
|
| 81 |
static void fatalError(const char *who) |
83 |
static void fatalError(const char *who) |
| 82 |
{ |
84 |
{ |