-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinet-aura.ads
76 lines (62 loc) · 2.19 KB
/
inet-aura.ads
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
-- INET AURA Configuration Manifest
package INET.AURA is
package Configuration is
Enable_TLS: constant Boolean := False;
end Configuration;
package Build is
package External_Libraries is
LibreSSL_libtls: constant String
:= (if Configuration.Enable_TLS then
"tls"
else
"");
-- Users should also ensure that the libressl include directory is in
-- C_INCLUDE_PATH, if not installed in the usual locations
end External_libraries;
package Ada is
package Compiler_Options is
Ignore_Unknown_Pragmas: constant String := "-gnatwG";
end Compiler_Options;
end Ada;
package C is
package Preprocessor_Definitions is
BSD: constant String
:= (if Platform_Flavor
in "freebsd" | "openbsd" | "netbsd"
then
"__INET_OS_BSD"
else
"");
Darwin: constant String
:= (if Platform_Flavor = "darwin" then
"__INET_OS_DARWIN"
else
"");
Linux: constant String
:= (if Platform_Flavor = "linux" then
"__INET_OS_LINUX"
else
"");
end Preprocessor_Definitions;
end C;
end Build;
package Codepaths is
TLS: constant String
:= (if Configuration.Enable_TLS then "tls" else "");
OS_Dependent: constant String
:= (if Platform_Family = "unix" then
"unix"
else
"");
IP_Lookup_Base: constant String := "ip_lookup/" & OS_Dependent;
IP_Lookup_Addrinfo: constant String
:= (if Platform_Flavor in "linux" | "openbsd" | "darwin" then
IP_Lookup_Base & "/addrinfo_posix"
elsif Platform_Flavor in
"freebsd" | "netbsd" | "solaris" | "illumos"
then
IP_Lookup_Base & "/addrinfo_bsd"
else
"");
end Codepaths;
end INET.AURA;