summaryrefslogtreecommitdiff
path: root/config.h
blob: c2a9b89498ac8fc6b9dcc0116e804b9008782bc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Light Unix I/O for Lua
 * Copyright 2012 Rob Kendrick <rjek+luxio@rjek.com>
 *
 * Distributed under the same terms as Lua itself (MIT).
 */

#ifndef LUXIO_CONFIG_H
#define LUXIO_CONFIG_H

#ifdef __linux__
# define HAVE_SENDFILE 1
# define HAVE_SPLICE 1
# define HAVE_D_TYPE 1
# define HAVE_FDATASYNC 1
# define _GNU_SOURCE
# define _LARGEFILE64_SOURCE
# define _POSIX_SOURCE
# define _POSIX_C_SOURCE 1
#endif

#ifndef LOGIN_NAME_MAX
# define LOGIN_NAME_MAX 9
#endif

#endif /* LUXIO_CONFIG_H */