Commits

David Krentzlin committed 09e7365

moved XOPEN_SOURCE to the very top

  • Participants
  • Parent commits b172b1f

Comments (0)

Files changed (3)

File sendfile.scm

 ;; OTHER DEALINGS IN THE SOFTWARE.
 ;; 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+(foreign-declare "#define _XOPEN_SOURCE 600")
 
 (module sendfile
 (force-implementation *last-selected-implementation* read-write-buffer-size
 (require-library posix lolevel srfi-4)
 (import extras posix srfi-4 foreign lolevel ports)
 
+
+
 (include "backward-compatibility.scm")
 
 (define (kilobytes num)  (* num 1024))

File strategies/sendfile.bsd.scm

 (foreign-declare "
-#define _XOPEN_SOURCE 600
 #include<sys/socket.h>
 #include<sys/types.h>
 #include <sys/uio.h>")

File strategies/sendfile.linux.scm

 (foreign-declare "
-#define _XOPEN_SOURCE 600
 #include <sys/sendfile.h>
 #include <fcntl.h>
 #include<errno.h>")