/*
- * Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 2010, 2012-2013 Todd C. Miller <Todd.Miller@courtesan.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
#include <config.h>
+#ifndef HAVE_DLOPEN
+
#include <sys/types.h>
#include <stdio.h>
void *
sudo_dlopen(const char *path, int mode)
{
- int flags = DYNAMIC_PATH;
+ int flags = DYNAMIC_PATH | BIND_VERBOSE;
if (mode == 0)
mode = RTLD_LAZY; /* default behavior */
{
return strerror(errno);
}
-
#endif /* HAVE_SHL_LOAD */
+#endif /* HAVE_DLOPEN */