dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtmail / dtmail / AttachArea.C
index 95da53528ad3682922dec9b11291a9e951627913..c22e4011f3d573aa4fc8a0e502916dfe7c34fd39 100644 (file)
@@ -47,9 +47,6 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/stat.h>
-#if defined(USL) || defined(__uxp__)
-#define S_ISSOCK(mode) ((mode & S_IFMT) == S_IFSOCK)
-#endif
 #include <stdio.h>
 #include <Dt/Editor.h>
 #include <Xm/ColorObjP.h>
@@ -678,14 +675,7 @@ AttachArea::addAttachment(
                                    (page_size - (s.st_size % page_size)));
     char * map;
 
-#if defined(__osf__)
-    // This version of mmap does NOT allow requested length to be
-    // greater than the file size ...  in contradiction to the
-    // documentation (don't round up).
-    map = (char *) mmap(0, s.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
-#else
     map = (char *) mmap(0, map_size, PROT_READ, MAP_PRIVATE, fd, 0);
-#endif
 
     if (map == (char *)-1) {
        // We could not map it for some reason. Let's just read it into