~ubuntu-branches/ubuntu/trusty/systemd/trusty

« back to all changes in this revision

Viewing changes to src/readahead/sd-readahead.c

Tags: upstream-202
ImportĀ upstreamĀ versionĀ 202

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
***/
26
26
 
27
27
#ifndef _GNU_SOURCE
28
 
#define _GNU_SOURCE
 
28
#  define _GNU_SOURCE
29
29
#endif
30
30
 
31
31
#include <unistd.h>
38
38
#include "sd-readahead.h"
39
39
 
40
40
#if (__GNUC__ >= 4)
41
 
#ifdef SD_EXPORT_SYMBOLS
 
41
#  ifdef SD_EXPORT_SYMBOLS
42
42
/* Export symbols */
43
 
#define _sd_export_ __attribute__ ((visibility("default")))
44
 
#else
 
43
#    define _sd_export_ __attribute__ ((visibility("default")))
 
44
#  else
45
45
/* Don't export the symbols */
46
 
#define _sd_export_ __attribute__ ((visibility("hidden")))
47
 
#endif
 
46
#    define _sd_export_ __attribute__ ((visibility("hidden")))
 
47
#  endif
48
48
#else
49
 
#define _sd_export_
 
49
#  define _sd_export_
50
50
#endif
51
51
 
52
52
static int touch(const char *path) {
65
65
                if (close(fd) >= 0)
66
66
                        break;
67
67
 
68
 
                if (errno != -EINTR)
 
68
                if (errno != EINTR)
69
69
                        return -errno;
70
70
        }
71
71