File: Define-XOPEN-to-explicitely-declare-tempnam.patch

package info (click to toggle)
cpl-plugin-vimos 3.1.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 21,044 kB
  • sloc: ansic: 160,597; cpp: 13,619; sh: 4,323; python: 1,425; makefile: 793; perl: 10
file content (23 lines) | stat: -rw-r--r-- 868 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Ole Streicher <olebole@debian.org>
Date: Fri, 8 Jul 2016 09:28:16 +0200
Subject: Define XOPEN to explicitely declare tempnam()

Otherwise, tempnam gets the default "int" return value which will cause
an implicit pointer conversion that may fail since sizeof(int) != sizeof(void *).
---
 vimos/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vimos/Makefile.am b/vimos/Makefile.am
index 8b4cbfe..1280cc9 100644
--- a/vimos/Makefile.am
+++ b/vimos/Makefile.am
@@ -29,7 +29,7 @@ MAINTAINERCLEANFILES = Makefile.in
 endif
 
 
-AM_CPPFLAGS = $(HDRL_INCLUDES) $(MOSCA_INCLUDES) $(GSL_CFLAGS) $(all_includes)
+AM_CPPFLAGS = -D_XOPEN_SOURCE $(HDRL_INCLUDES) $(MOSCA_INCLUDES) $(GSL_CFLAGS) $(all_includes)
 
 pkginclude_HEADERS = vmadf.h vmadfifutable.h vmastrometrictable.h \
 	vmccdtable.h vmcpl.h vmcube.h vmdetector.h vmdistmodels.h \