summaryrefslogtreecommitdiffhomepage
path: root/src/go/unit/linux-lrt.go
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-12-01 16:57:30 +0300
committerMax Romanov <max.romanov@nginx.com>2017-12-01 16:57:30 +0300
commit40eb1f8b9b2a76d76ef6a4a094bf8192a44cbe41 (patch)
treef8e1b7f97762d6c36deeadca1b503dc91aa3ce12 /src/go/unit/linux-lrt.go
parentffb1c68609620824a88e0573e13f91ce0e810bf2 (diff)
downloadunit-40eb1f8b9b2a76d76ef6a4a094bf8192a44cbe41.tar.gz
unit-40eb1f8b9b2a76d76ef6a4a094bf8192a44cbe41.tar.bz2
Making Go package source distributable and renaming to 'nginx/unit'.
All header files are copied to Go package sources. As the result, package can be (re-)build when required. This closes #23 issue on GitHub.
Diffstat (limited to 'src/go/unit/linux-lrt.go')
-rw-r--r--src/go/unit/linux-lrt.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/go/unit/linux-lrt.go b/src/go/unit/linux-lrt.go
new file mode 100644
index 00000000..37ea4880
--- /dev/null
+++ b/src/go/unit/linux-lrt.go
@@ -0,0 +1,13 @@
+// +build linux
+
+/*
+ * Copyright (C) Max Romanov
+ * Copyright (C) NGINX, Inc.
+ */
+
+package unit
+
+/*
+#cgo LDFLAGS: -lrt
+*/
+import "C"