summaryrefslogtreecommitdiff
path: root/job.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-21 17:37:59 -0400
committerPaul Smith <psmith@gnu.org>2013-09-21 17:37:59 -0400
commitd2d44f76c4d86017ccbe6f70ef6318d71947e6d7 (patch)
tree8e22c54c2772d214116a761a5bebd37ff721b101 /job.h
parent6c3e88e60f2c7d2bff3aa1967afcc59f27626c48 (diff)
downloadgunmake-d2d44f76c4d86017ccbe6f70ef6318d71947e6d7.tar.gz
Invert the #define for output-sync: turn it off with NO_OUTPUT_SYNC
Diffstat (limited to 'job.h')
-rw-r--r--job.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/job.h b/job.h
index c9cb7fa..29652fc 100644
--- a/job.h
+++ b/job.h
@@ -37,7 +37,11 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
# define CLOSE_ON_EXEC(_d) (void) fcntl ((_d), F_SETFD, FD_CLOEXEC)
#endif
-#ifdef OUTPUT_SYNC
+#ifdef NO_OUTPUT_SYNC
+# define RECORD_SYNC_MUTEX(m) \
+ error (NILF, \
+ _("-O[TYPE] (--output-sync[=TYPE]) is not configured for this build."));
+#else
# ifdef WINDOWS32
/* For emulations in w32/compat/posixfcn.c. */
# define F_GETFD 1
@@ -69,7 +73,6 @@ int same_stream (FILE *f1, FILE *f2);
# define RECORD_SYNC_MUTEX(m) record_sync_mutex(m)
void record_sync_mutex (const char *str);
void prepare_mutex_handle_string (intptr_t hdl);
-
# else /* !WINDOWS32 */
typedef int sync_handle_t; /* file descriptor */
@@ -77,11 +80,7 @@ typedef int sync_handle_t; /* file descriptor */
# define RECORD_SYNC_MUTEX(m) (void)(m)
# endif
-#else /* !OUTPUT_SYNC */
-#define RECORD_SYNC_MUTEX(m) \
- error (NILF, \
- _("-O[TYPE] (--output-sync[=TYPE]) is not configured for this build."));
-#endif /* OUTPUT_SYNC */
+#endif /* !OUTPUT_SYNC */
/* Structure describing a running or dead child process. */