Replaced mkstemp by mkstemps from libiberty.
Removed a couple of unnecessary portability functions.

diff --git a/server/file.c b/server/file.c
index c14c4ee..1def8cb 100644
--- a/server/file.c
+++ b/server/file.c
@@ -253,7 +253,7 @@
     int fd;
 
     sprintf( tmpfn, "anonmap.XXXXXX" );  /* create it in the server directory */
-    fd = mkstemp(tmpfn);
+    fd = mkstemps( tmpfn, 0 );
     if (fd == -1)
     {
         file_set_error();