Skip to content

Commit

Permalink
Define _XOPEN_SOURCE=501 for xgterm/main.c
Browse files Browse the repository at this point in the history
`main.c` uses the function `ptsname()` which is declared in `stdlib.h`
as `char *` only if this is defined. Otherwise, the return value
defaults to `int`, which will not correctly convert to a pointer on 64
bit archs.
  • Loading branch information
olebole committed Jun 6, 2018
1 parent 357c67d commit 7898098
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xgterm/Imakefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ X11IRAFDIR = ../

MAIN_DEFINES = -DUTMP $(TTYGROUPDEF) $(PUCCPTYDDEF) \
-DOSMAJORVERSION=$(OSMAJORVERSION) \
-DOSMINORVERSION=$(OSMINORVERSION)
-DOSMINORVERSION=$(OSMINORVERSION) \
-D_XOPEN_SOURCE=501
MISC_DEFINES = /* -DALLOWLOGFILEEXEC */
EXTRA_DEFINES = -DALLOWLOGGING
LOCAL_LDFLAGS = -L../lib
Expand Down

0 comments on commit 7898098

Please sign in to comment.