summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pam/gopam.c2
-rw-r--r--pam/pam.go1
2 files changed, 1 insertions, 2 deletions
diff --git a/pam/gopam.c b/pam/gopam.c
index 5dfb5c6..90d3de3 100644
--- a/pam/gopam.c
+++ b/pam/gopam.c
@@ -5,8 +5,6 @@
#include "gopam.h"
#include "_cgo_export.h"
-//#cgo LDFLAGS: -lpam
-
/* Simplification of pam_get_item to remove type ambiguity. Will never
be called (promise) with a type that returns anything other than a string */
get_item_result pam_get_item_string(pam_handle_t *handle, int type) {
diff --git a/pam/pam.go b/pam/pam.go
index 9c97cab..08ba614 100644
--- a/pam/pam.go
+++ b/pam/pam.go
@@ -4,6 +4,7 @@ package pam
import (
//#include "gopam.h"
+ //#cgo LDFLAGS: -lpam
"C"
"unsafe"
"strings"