Fix OSX build for sysinit

This commit is contained in:
Guillaume J. Charmes
2013-12-18 10:16:48 -08:00
parent 70c7220a99
commit 73a1ef7c22
3 changed files with 15 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
package sysinit
import (
"syscall"
)
func setHostname(hostname string) error {
return syscall.Sethostname([]byte(hostname))
}