Skip to content
Snippets Groups Projects
Commit 5ad6acf9 authored by Per Hedbor's avatar Per Hedbor
Browse files

hmm

Rev: src/config.h:1.5
Rev: src/modules/files/configure.in:1.4
Rev: src/modules/files/efuns.c:1.3
Rev: src/modules/files/file.c:1.4
Rev: src/modules/files/file_machine.h.in:1.2
Rev: src/modules/files/socket.c:1.5
parent a3ce270c
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
* with DEBUG defined debugging becomes much easier.
*/
#undef DEBUG
/* #define DEBUG */
/*
* Define the evaluator stack size, used for just about everything.
......@@ -30,7 +30,7 @@
/*
* Define the size of the shared string hash table.
*/
#define HTABLE_SIZE 4711
#define HTABLE_SIZE 117
/*
* Define the size of the cache that is used for method lookup.
......@@ -46,7 +46,4 @@
#define YYDEBUG 1
#endif
/* Not parently used */
#define GC_TIME 60
#endif
......@@ -5,7 +5,7 @@ AC_PROG_CC
AC_PROG_RANLIB
AC_SUBST(RANLIB)
AC_HAVE_HEADERS(arpa/inet.h sys/socketvar.h netinet/in.h)
AC_HAVE_HEADERS(arpa/inet.h sys/socketvar.h netinet/in.h sys/stream.h sys/protosw.h)
AC_HEADER_DIRENT
AC_CHECK_LIB(socket, socket)
......
......@@ -195,6 +195,9 @@ void f_getcwd(INT32 args)
pop_n_elems(args);
#ifdef HAVE_GETWD
#ifndef MAXPATHLEN
#define MAXPATHLEN (1024*20)
#endif
e=(char *)getwd((char *)malloc(MAXPATHLEN+1));
if(!e)
fatal("Couldn't fetch current path.\n");
......
......@@ -34,6 +34,14 @@
#include <sys/wait.h>
#include <sys/socket.h>
#ifdef HAVE_SYS_STREAM_H
#include <sys/stream.h>
#endif
#ifdef HAVE_SYS_PROTOSW_H
#include <sys/protosw.h>
#endif
#ifdef HAVE_SYS_SOCKETVAR_H
#include <sys/socketvar.h>
#endif
......
#ifndef FILE_MACHINE_H
#define FILE_MACHINE_H
#undef HAVE_SYS_PROTOSW_H
#undef HAVE_SYS_STREAM_H
/* Define if you have arpa/inhet.h */
#undef HAVE_ARPA_INET_H
......
......@@ -20,6 +20,15 @@
#include <sys/wait.h>
#include <sys/socket.h>
#ifdef HAVE_SYS_STREAM_H
#include <sys/stream.h>
#endif
#ifdef HAVE_SYS_PROTOSW_H
#include <sys/protosw.h>
#endif
#ifdef HAVE_SYS_SOCKETVAR_H
#include <sys/socketvar.h>
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment