Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv3355/src
Modified Files:
modules.c
Log Message:
rearrange #ifdef's so that it only checks once
Index: modules.c
===================================================================
RCS file: /cvsroot/srvx/services/src/modules.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** modules.c 2001/10/12 02:03:34 1.18
--- modules.c 2001/10/12 04:15:16 1.19
***************
*** 15,20 ****
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * $Id$
*/
--- 15,18 ----
***************
*** 24,32 ****
#include <string.h>
#include <stdio.h>
- #if defined(HAVE_DLFCN_H)
- #include <dlfcn.h>
- #else
- #error No module support on your platform, sorry.
- #endif
#include "common.h"
--- 22,25 ----
***************
*** 68,71 ****
--- 61,66 ----
#if defined(HAVE_DLFCN_H)
+ #include <dlfcn.h>
+
static struct shared_lib *
module_load_shared_lib(const char *so_name)
***************
*** 93,96 ****
--- 88,93 ----
dlclose(lib->handle);
}
+ #else
+ #error No module support on your platform, sorry.
#endif
|