summaryrefslogtreecommitdiff
path: root/makeint.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2014-10-20 01:54:56 -0400
committerPaul Smith <psmith@gnu.org>2014-10-20 01:54:56 -0400
commit292da6f6867b75a5af7ddbb639a1feae022f438f (patch)
treedefaed7701a30a52b7ba0c6d03f7cd895ae157b6 /makeint.h
parent3c487e7ed54bcfe9c83cb4cbb66549c5d42692fe (diff)
downloadgunmake-292da6f6867b75a5af7ddbb639a1feae022f438f.tar.gz
* main.c (main): [SV 43434] Handle NULL returns from ttyname().
Diffstat (limited to 'makeint.h')
-rw-r--r--makeint.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/makeint.h b/makeint.h
index 6223936..2009f41 100644
--- a/makeint.h
+++ b/makeint.h
@@ -436,10 +436,11 @@ extern struct rlimit stack_limit;
/* The number of bytes needed to represent the largest integer as a string. */
#define INTSTR_LENGTH CSTRLEN ("18446744073709551616")
+#define DEFAULT_TTYNAME "true"
#ifdef HAVE_TTYNAME
# define TTYNAME(_f) ttyname (_f)
#else
-# define TTYNAME(_f) "true"
+# define TTYNAME(_f) DEFAULT_TTYNAME
#endif