33 * Portions Copyright (c) 1990 The Regents of the University of California.
44 * All rights reserved.
55 *
6- * $PostgreSQL: pgsql/src/backend/port/dynloader/netbsd.c,v 1.22 2008/01/01 19:45:51 momjian Exp $
6+ * $PostgreSQL: pgsql/src/backend/port/dynloader/netbsd.c,v 1.23 2008/03/05 19:42:11 alvherre Exp $
77 *
88 * Redistribution and use in source and binary forms, with or without
99 * modification, are permitted provided that the following conditions
@@ -57,7 +57,7 @@ BSD44_derived_dlerror(void)
5757void *
5858BSD44_derived_dlopen (const char * file ,int num )
5959{
60- #if defined(__mips__ )
60+ #if ! defined(HAVE_DLOPEN )
6161snprintf (error_message ,sizeof (error_message ),
6262"dlopen (%s) not supported" ,file );
6363return NULL ;
@@ -74,7 +74,7 @@ BSD44_derived_dlopen(const char *file, int num)
7474void *
7575BSD44_derived_dlsym (void * handle ,const char * name )
7676{
77- #if defined(__mips__ )
77+ #if ! defined(HAVE_DLOPEN )
7878snprintf (error_message ,sizeof (error_message ),
7979"dlsym (%s) failed" ,name );
8080return NULL ;
@@ -99,7 +99,7 @@ BSD44_derived_dlsym(void *handle, const char *name)
9999void
100100BSD44_derived_dlclose (void * handle )
101101{
102- #if defined(__mips__ )
102+ #if ! defined(HAVE_DLOPEN )
103103#else
104104dlclose (handle );
105105#endif