summaryrefslogtreecommitdiff
path: root/dl/dlsym_reserved.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-10-26 16:16:25 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-10-26 16:16:25 -0400
commit1eb4413f868967283487f73c87e906273bab8b9b (patch)
tree1eecc8707ac0661fb46ddf56d6607e8065e19dd8 /dl/dlsym_reserved.go
parent9a08b2758e86effcb70b92a31548d8368c95a7e6 (diff)
dlfcn: dlerror requires a global lock anyway
Diffstat (limited to 'dl/dlsym_reserved.go')
-rw-r--r--dl/dlsym_reserved.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/dl/dlsym_reserved.go b/dl/dlsym_reserved.go
index cfa0dca..081e012 100644
--- a/dl/dlsym_reserved.go
+++ b/dl/dlsym_reserved.go
@@ -44,7 +44,7 @@ var (
// the executable and its dependencies, as well as symbols in
// shared objects that were dynamically loaded with the
// RTLD_GLOBAL flag.
- RTLD_DEFAULT *Handle
+ RTLD_DEFAULT Handle
// This Handle represents the shared object search order after
// the current object. This allows one to provide a wrapper
@@ -54,10 +54,10 @@ var (
// "real" function provided in another shared object (or for
// that matter, the "next" definition of the function in cases
// where there are multiple layers of preloading).
- RTLD_NEXT *Handle
+ RTLD_NEXT Handle
)
func init() {
- RTLD_DEFAULT = &Handle{c: unsafe.Pointer(uintptr(C.rtld_default)), o: 2}
- RTLD_DEFAULT = &Handle{c: unsafe.Pointer(uintptr(C.rtld_next)), o: 2}
+ RTLD_DEFAULT = Handle{c: unsafe.Pointer(uintptr(C.rtld_default)), o: 2}
+ RTLD_DEFAULT = Handle{c: unsafe.Pointer(uintptr(C.rtld_next)), o: 2}
}