Skip to content

Commit

Permalink
fix library import so c function 'setns' and 'pclose' can included pr…
Browse files Browse the repository at this point in the history
…operly
  • Loading branch information
s3341458 committed Feb 25, 2018
1 parent a4e4e2c commit 239f6ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nsenter/nsenter.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package nsenter

/*
#define _GNU_SOURCE
#include <unistd.h>
#include <errno.h>
#include <sched.h>
#include <stdio.h>
Expand Down Expand Up @@ -45,4 +47,4 @@ __attribute__((constructor)) void enter_namespace(void) {
return;
}
*/
import "C"
import "C"

0 comments on commit 239f6ad

Please sign in to comment.