* Do not define _BSD_SOURCE but define _DEFAULT_SOURCE instead.
[alpine.git] / imap / src / osdep / unix / os_slx.h
blobc24bbec7ac012a6962df5c9c0bceb3f97d32463e
1 /* ========================================================================
2 * Copyright 2008-2009 Mark Crispin
3 * ========================================================================
4 */
6 /*
7 * Program: Operating-system dependent routines -- Linux version
9 * Author: Mark Crispin
11 * Date: 10 September 1993
12 * Last Edited: 18 May 2009
14 * Previous versions of this file were:
16 * Copyright 1988-2006 University of Washington
18 * Licensed under the Apache License, Version 2.0 (the "License");
19 * you may not use this file except in compliance with the License.
20 * You may obtain a copy of the License at
22 * http://www.apache.org/licenses/LICENSE-2.0
27 *** These lines are claimed to be necessary to build on Debian Linux on an
28 *** Alpha.
31 #ifndef _XOPEN_SOURCE
32 #define _XOPEN_SOURCE 1
33 #endif /* _XOPEN_SOURCE */
34 #ifndef _DEFAULT_SOURCE
35 #define _DEFAULT_SOURCE 1
36 #endif /* _DEFAULT_SOURCE */
38 /* end Debian Linux on Alpha strangeness */
40 #include <stdlib.h>
41 #include <string.h>
42 #include <unistd.h>
43 #include <sys/types.h>
44 #include <dirent.h>
45 #include <time.h> /* for struct tm */
46 #include <fcntl.h>
47 #include <utime.h>
48 #include <syslog.h>
49 #include <sys/file.h>
52 /* Linux gets this wrong */
54 #define setpgrp setpgid
56 #define direct dirent
58 #define flock safe_flock
60 #define utime portable_utime
61 int portable_utime (char *file,time_t timep[2]);
64 #include "env_unix.h"
65 #include "fs.h"
66 #include "ftl.h"
67 #include "nl.h"
68 #include "tcp.h"