summaryrefslogtreecommitdiff
path: root/src/getopt/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2011-01-12 15:32:17 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-01-12 15:32:17 +0000
commit6d670f6c0f3b9383b8b4c8ed12beaeec56928266 (patch)
treec5fde95c1140ef67fff287d8a8f078f533ed84f1 /src/getopt/SConscript
parent46662de68b72634c9059ad450e8f6c2edf36c092 (diff)
getopt: Import OpenBSD getopt implementation for MSVC.
Diffstat (limited to 'src/getopt/SConscript')
-rw-r--r--src/getopt/SConscript13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/getopt/SConscript b/src/getopt/SConscript
new file mode 100644
index 0000000000..0fbaab4af9
--- /dev/null
+++ b/src/getopt/SConscript
@@ -0,0 +1,13 @@
+Import('*')
+
+if not env['msvc']:
+ Return()
+
+env = env.Clone()
+
+getopt = env.ConvenienceLibrary(
+ target = 'getopt',
+ source = ['getopt_long.c'],
+)
+
+Export('getopt')