r25068: Older samba3 DCs will return DCERPC_FAULT_OP_RNG_ERROR for every opcode on the
[Samba.git] / source / lib / replace / dlfcn.c
blob55b38bb9eb70e2e43d6f3d3e080f85fec6ee331f
1 /*
2 Unix SMB/CIFS implementation.
3 Samba system utilities
4 Copyright (C) Andrew Tridgell 1992-1998
5 Copyright (C) Jeremy Allison 1998-2002
7 ** NOTE! The following LGPL license applies to the replace
8 ** library. This does NOT imply that all of Samba is released
9 ** under the LGPL
11 This library is free software; you can redistribute it and/or
12 modify it under the terms of the GNU Lesser General Public
13 License as published by the Free Software Foundation; either
14 version 2 of the License, or (at your option) any later version.
16 This library is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
21 You should have received a copy of the GNU Lesser General Public
22 License along with this library; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #include "replace.h"
28 #ifndef HAVE_DLOPEN
29 #ifdef DLOPEN_TAKES_UNSIGNED_FLAGS
30 void *rep_dlopen(const char *name, unsigned int flags)
31 #else
32 void *rep_dlopen(const char *name, int flags)
33 #endif
35 return NULL;
37 #endif
39 #ifndef HAVE_DLSYM
40 void *rep_dlsym(void *handle, const char *symbol)
42 return NULL;
44 #endif
46 #ifndef HAVE_DLERROR
47 char *rep_dlerror(void)
49 return "dynamic loading of objects not supported on this platform";
51 #endif
53 #ifndef HAVE_DLCLOSE
54 int rep_dlclose(void *handle)
56 return 0;
58 #endif