X-Git-Url: http://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=acconfig.h;h=ebfa2da19fa1396884e85f8c7deb65a30f7e307f;hp=dfd6d9947d030f3f36af5921bcfa0ba35dc57a5d;hb=refs%2Fheads%2Fuc;hpb=c7dcdfd34d2bed9cc64c5c9603e51ef8c8271951;ds=sidebyside diff --git a/acconfig.h b/acconfig.h index dfd6d99..ebfa2da 100644 --- a/acconfig.h +++ b/acconfig.h @@ -79,5 +79,29 @@ #include "uccompat.h" +#ifdef STACKCHECK +extern void live_check(const char *file,int line,int alloc); +extern void live_disable(int how); +#define LIVE live_check(__FILE__,__LINE__,-1) +#define LIVE_ALLOC(n) live_check(__FILE__,__LINE__,(n)) +#define LIVE_DISABLE live_disable(1) +#define LIVE_ENABLE live_disable(-1) +#else /* STACKCHECK */ +#define LIVE +#define LIVE_ALLOC(n) +#define LIVE_DISABLE +#define LIVE_ENABLE +#endif /* STACKCHECK */ + + +#ifdef USE_UNIX98PTYS +# define _XOPEN_SOURCE 500 +#endif +#define _BSD_SOURCE 1 +#include +extern void usleep_watchdevice(unsigned long usecs); +#define usleep(usecs) usleep_watchdevice((usecs)) +#define sleep(secs) usleep((secs)*1000000) + #endif /* __CONFIG_H__ */