aboutsummaryrefslogtreecommitdiff
path: root/libexec/rtld-elf/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/rtld-elf/debug.h')
-rw-r--r--libexec/rtld-elf/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/debug.h b/libexec/rtld-elf/debug.h
index 2600651997e8..04314a9cb591 100644
--- a/libexec/rtld-elf/debug.h
+++ b/libexec/rtld-elf/debug.h
@@ -53,7 +53,7 @@ extern int debug;
#define assert(cond) ((cond) ? (void) 0 : \
(msg("ld-elf.so.1: assert failed: " __FILE__ ":" \
__XSTRING(__LINE__) "\n"), abort()))
-#define msg(s) write(1, s, strlen(s))
+#define msg(s) write(STDOUT_FILENO, s, strlen(s))
#define trace() msg("ld-elf.so.1: " __XSTRING(__LINE__) "\n")
#endif /* DEBUG_H */