diff options
Diffstat (limited to 'src/nshd/hackers_git')
-rw-r--r-- | src/nshd/hackers_git/name2gid.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nshd/hackers_git/name2gid.go b/src/nshd/hackers_git/name2gid.go index b33e6aa..c155d29 100644 --- a/src/nshd/hackers_git/name2gid.go +++ b/src/nshd/hackers_git/name2gid.go @@ -5,9 +5,10 @@ import ( "unsafe" ) -//#include <stdlib.h> /* free */ -//#include <unistd.h> /* sysconf */ -//#include <grp.h> /* getgrnam_r */ +//#define _XOPEN_SOURCE /* for getgrnam_r(3) in grp.h */ +//#include <stdlib.h> /* for free(3) */ +//#include <unistd.h> /* for sysconf(3) */ +//#include <grp.h> /* for getgrnam_r(3) */ import "C" func name2gid(name string) (gid int32) { |