forked from github/server
remove os.[hc] in favor of generated config.h
new cmake files to find lua
This commit is contained in:
parent
4a08cdd23e
commit
3660c47afb
2
cmake
2
cmake
|
@ -1 +1 @@
|
|||
Subproject commit 51114339b929a662fb85d45ab6310b0423ac4cef
|
||||
Subproject commit ddd0136d4e99b0daab16361aad5338ad3ca4b808
|
|
@ -169,7 +169,6 @@ set (LIB_SRC
|
|||
util/log.c
|
||||
util/message.c
|
||||
util/nrmessage.c
|
||||
util/os.c
|
||||
util/parser.c
|
||||
util/rand.c
|
||||
util/resolve.c
|
||||
|
|
|
@ -59,7 +59,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include <util/bsdstring.h>
|
||||
#include <util/language.h>
|
||||
#include <util/log.h>
|
||||
#include <util/os.h>
|
||||
#include <util/parser.h>
|
||||
#include <quicklist.h>
|
||||
#include <util/rand.h>
|
||||
|
|
|
@ -52,7 +52,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include <util/language.h>
|
||||
#include <util/lists.h>
|
||||
#include <util/log.h>
|
||||
#include <util/os.h>
|
||||
#include <quicklist.h>
|
||||
|
||||
/* libc includes */
|
||||
|
|
|
@ -61,7 +61,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include <util/language.h>
|
||||
#include <util/lists.h>
|
||||
#include <util/log.h>
|
||||
#include <util/os.h>
|
||||
#include <util/parser.h>
|
||||
#include <quicklist.h>
|
||||
#include <util/rand.h>
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
#include "os.h"
|
||||
|
||||
#if defined(WIN32)
|
||||
#include <direct.h>
|
||||
#else /* WIN32 */
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif /* WIN32 */
|
||||
int os_mkdir(const char *path, int mode)
|
||||
{
|
||||
|
||||
#ifdef WIN32
|
||||
mode = mode;
|
||||
return _mkdir(path);
|
||||
#else /* POSIX is our last hope */
|
||||
return mkdir(path, (mode_t) mode);
|
||||
#endif /* WIN32 */
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
/*
|
||||
Copyright (c) 1998-2010, Enno Rehling <enno@eressea.de>
|
||||
Katja Zedel <katze@felidae.kn-bremen.de
|
||||
Christian Schlittchen <corwin@amber.kn-bremen.de>
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
**/
|
||||
|
||||
#ifndef _OS_H
|
||||
#define _OS_H
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern int os_mkdir(const char *path, int mode);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
Loading…
Reference in New Issue