File: non_linux_include.diff

package info (click to toggle)
indi 1.9.9%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,792 kB
  • sloc: cpp: 186,158; ansic: 30,836; xml: 869; sh: 282; makefile: 11
file content (21 lines) | stat: -rw-r--r-- 488 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
Author: gitplcc <pedroluis.castedo@upm.es>
Last-Update: 2022-12-28
Description: Add missing include on non-Linux platforms
 .
 Originally part of a bigger commit named:
 > Fix building in Cygwin (#1794)
Origin: https://github.com/indilib/indi/commit/fa9958ea403e444bc9a50d5722789b0b66b33c28

--- a/libs/indiclient/baseclient.cpp
+++ b/libs/indiclient/baseclient.cpp
@@ -36,6 +36,10 @@
 # include <unistd.h>
 #endif
 
+#ifndef __linux__
+# include <fcntl.h>
+#endif
+
 namespace INDI
 {