diff options
Diffstat (limited to 'multihome.h')
-rw-r--r-- | multihome.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/multihome.h b/multihome.h index c08401c..6d157de 100644 --- a/multihome.h +++ b/multihome.h @@ -5,6 +5,10 @@ #ifndef MULTIHOME_MULTIHOME_H #define MULTIHOME_MULTIHOME_H +#ifdef ENABLE_TESTING +#include <assert.h> +#endif + #include <errno.h> #include <stdio.h> #include <stdlib.h> @@ -26,4 +30,8 @@ #define OS_SKEL_DIR "/etc/skel/" // NOTE: Trailing slash is required #define RSYNC_ARGS "-aq" +#define DISABLE_BUFFERING \ + setvbuf(stdout, NULL, _IONBF, 0); \ + setvbuf(stderr, NULL, _IONBF, 0); + #endif //MULTIHOME_MULTIHOME_H |