- err = "Module is not statically compiled into the ircd";
-#else
- // Copy the library to a temp location, this makes recompiles
- // a little safer if the ircd is running at the time as the
- // shared libraries are mmap()ed and not doing this causes
- // segfaults.
- FILE* x = fopen(fname,"rb");
- char tmpfile_template[255];
- char buffer[65536];
- snprintf(tmpfile_template, 255, "/tmp/inspircd_file.so.%d.XXXXXXXXXX",getpid());
- int fd = mkstemp(tmpfile_template);
- while (!feof(x))