* Portions Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
- * $PostgreSQL: pgsql/src/backend/port/dynloader/netbsd.c,v 1.22 2008/01/01 19:45:51 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/port/dynloader/netbsd.c,v 1.23 2008/03/05 19:42:11 alvherre Exp $
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
void *
BSD44_derived_dlopen(const char *file, int num)
{
-#if defined(__mips__)
+#if !defined(HAVE_DLOPEN)
snprintf(error_message, sizeof(error_message),
"dlopen (%s) not supported", file);
return NULL;
void *
BSD44_derived_dlsym(void *handle, const char *name)
{
-#if defined(__mips__)
+#if !defined(HAVE_DLOPEN)
snprintf(error_message, sizeof(error_message),
"dlsym (%s) failed", name);
return NULL;
void
BSD44_derived_dlclose(void *handle)
{
-#if defined(__mips__)
+#if !defined(HAVE_DLOPEN)
#else
dlclose(handle);
#endif