File: disable-check-for-windows.h.patch

package info (click to toggle)
flightgear 1%3A2020.3.19%2Bdfsg-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,168 kB
  • sloc: cpp: 245,588; ansic: 181,318; sh: 13,686; perl: 4,475; python: 3,139; xml: 899; asm: 642; makefile: 347; java: 314
file content (23 lines) | stat: -rw-r--r-- 736 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: "Dr. Tobias Quathamer" <toddy@debian.org>
Date: Tue, 16 Jun 2020 23:03:11 +0200
Subject: Disable check for windows.h

Forwarded: no
Last-Update: 2018/12/09
---
 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -425,7 +425,9 @@
 check_include_file(unistd.h        HAVE_UNISTD_H)
 check_include_file(sys/time.h      HAVE_SYS_TIME_H)
 check_include_file(sys/timeb.h     HAVE_SYS_TIMEB_H)
-check_include_file(windows.h       HAVE_WINDOWS_H)
+if(WIN32)
+    check_include_file(windows.h       HAVE_WINDOWS_H)
+endif()
 check_function_exists(timegm       HAVE_TIMEGM)
 check_variable_exists(daylight     HAVE_DAYLIGHT)
 check_function_exists(ftime        HAVE_FTIME)