parent
b0b34c95ae
commit
c8a537f3a8
14
meson.build
14
meson.build
|
@ -11,6 +11,15 @@ deps = [
|
||||||
dependency('emotion', version: '>= 1.26.0'),
|
dependency('emotion', version: '>= 1.26.0'),
|
||||||
m_dep
|
m_dep
|
||||||
]
|
]
|
||||||
|
|
||||||
|
bsd = ['bsd', 'freebsd', 'dragonfly', 'netbsd', 'openbsd']
|
||||||
|
linux = ['linux']
|
||||||
|
sun = ['sunos']
|
||||||
|
|
||||||
|
sys_linux = linux.contains(host_machine.system())
|
||||||
|
sys_bsd = bsd.contains(host_machine.system())
|
||||||
|
sys_sun = sun.contains(host_machine.system())
|
||||||
|
|
||||||
dir_prefix = get_option('prefix')
|
dir_prefix = get_option('prefix')
|
||||||
dir_bin = join_paths(dir_prefix, get_option('bindir'))
|
dir_bin = join_paths(dir_prefix, get_option('bindir'))
|
||||||
dir_lib = join_paths(dir_prefix, get_option('libdir'))
|
dir_lib = join_paths(dir_prefix, get_option('libdir'))
|
||||||
|
@ -32,6 +41,11 @@ cfg.set ('_POSIX_PTHREAD_SEMANTICS', 1)
|
||||||
cfg.set ('_ALL_SOURCE' , 1)
|
cfg.set ('_ALL_SOURCE' , 1)
|
||||||
cfg.set ('_POSIX_SOURCE' , 1)
|
cfg.set ('_POSIX_SOURCE' , 1)
|
||||||
cfg.set ('_POSIX_1_SOURCE' , 1)
|
cfg.set ('_POSIX_1_SOURCE' , 1)
|
||||||
|
|
||||||
|
if sys_linux or sys_bsd or sys_sun
|
||||||
|
cfg.set('STAT_NSEC', '1')
|
||||||
|
endif
|
||||||
|
|
||||||
configure_file(output: 'efm_config.h', configuration: cfg)
|
configure_file(output: 'efm_config.h', configuration: cfg)
|
||||||
subdir('src')
|
subdir('src')
|
||||||
subdir('data')
|
subdir('data')
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
#include "sha.h"
|
#include "sha.h"
|
||||||
|
#include "efm_config.h"
|
||||||
#include <Eina.h>
|
#include <Eina.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
sha1_stat(const struct stat *st, unsigned char dst[20])
|
sha1_stat(const struct stat *st, unsigned char dst[20])
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#ifndef SHA_H
|
#ifndef SHA_H
|
||||||
# define SHA_H 1
|
# define SHA_H 1
|
||||||
|
|
||||||
// get nsec in stat
|
# include "efm_config.h"
|
||||||
#define STAT_NSEC 1
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
void sha1_stat(const struct stat *st, unsigned char dst[20]);
|
void sha1_stat(const struct stat *st, unsigned char dst[20]);
|
||||||
|
|
Loading…
Reference in New Issue