mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-13 14:43:09 +00:00
some header changes to work with older systems. expose readdir to user scripts. write examples into doc dir
This commit is contained in:
parent
a71edbbd29
commit
4c56100dd0
@ -11,7 +11,7 @@ endif
|
||||
#endif
|
||||
|
||||
lsyncd_LDADD = $(LUA_LIBS)
|
||||
exampledir = $(datarootdir)/doc/@PACKAGE@
|
||||
exampledir = $(docdir)/
|
||||
dist_example_DATA = \
|
||||
examples/lbash.lua \
|
||||
examples/lecho.lua \
|
||||
|
1
lsyncd.c
1
lsyncd.c
@ -30,6 +30,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <syslog.h>
|
||||
#include <math.h>
|
||||
#include <time.h>
|
||||
|
4
lsyncd.h
4
lsyncd.h
@ -11,6 +11,10 @@
|
||||
#ifndef LSYNCD_H
|
||||
#define LSYNCD_H
|
||||
|
||||
/* some older machines need this to see pselect */
|
||||
#define _BSD_SOURCE 1
|
||||
#define _XOPEN_SOURCE 600
|
||||
|
||||
/* includes needed for headerfile */
|
||||
#include "config.h"
|
||||
|
||||
|
@ -38,6 +38,7 @@ _l = nil
|
||||
log = lsyncd.log
|
||||
terminate = lsyncd.terminate
|
||||
now = lsyncd.now
|
||||
readdir = lsyncd.readdir
|
||||
-- just to safe from userscripts changing this.
|
||||
local log = log
|
||||
local terminate = terminate
|
||||
|
Loading…
Reference in New Issue
Block a user