setlinebuf() added in commit
bcfa9123b41da8048450ed27aaeffff17b8eee99 is not in
SuS v3, use the exactly equivalent C89 setvbuf() invocation for portability
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
+ setvbuf(stdout, NULL, _IOLBF, 0);
while(1) {
XNextEvent(dpy, &Event);
while(1) {
XNextEvent(dpy, &Event);
int deviceid = -1;
int rc;
int deviceid = -1;
int rc;
+ setvbuf(stdout, NULL, _IOLBF, 0);
rc = list(display, argc, argv, name, desc);
if (rc != EXIT_SUCCESS)
rc = list(display, argc, argv, name, desc);
if (rc != EXIT_SUCCESS)