Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
91be7ed9
Commit
91be7ed9
authored
26 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Added test of type of last argument of accept().
Rev: src/modules/files/configure.in:1.57
parent
6e678f81
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/files/configure.in
+38
-2
38 additions, 2 deletions
src/modules/files/configure.in
with
38 additions
and
2 deletions
src/modules/files/configure.in
+
38
−
2
View file @
91be7ed9
# $Id: configure.in,v 1.5
6
1998/0
7/23
22:
03
:5
6
grubba Exp $
# $Id: configure.in,v 1.5
7
1998/0
8/06
22:
47
:5
5
grubba Exp $
AC_INIT(file.c)
AC_CONFIG_HEADER(file_machine.h)
...
...
@@ -7,13 +7,43 @@ sinclude(../module_configure.in)
AC_HAVE_HEADERS(sys/types.h arpa/inet.h sys/socketvar.h netinet/in.h \
sys/mount.h ustat.h sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
sys/socket.h sys/stream.h sys/protosw.h netdb.h sys/sysproto.h winsock.h \
direct.h sys/wait.h process.h sys/file.h net/netdb.h limits.h)
direct.h sys/wait.h process.h sys/file.h net/netdb.h limits.h
unistd.h
)
AC_HEADER_DIRENT
AC_CHECK_LIB(bind, __inet_ntoa)
AC_CHECK_LIB(socket, socket)
AC_HAVE_FUNCS(getwd perror readdir_r statvfs statfs ustat lseek64 lstat socketpair)
AC_MSG_CHECKING(if the last argument to accept is a size_t)
AC_CACHE_VAL(pike_cv_type_accept, [
AC_TRY_COMPILE([
#ifndef _LARGEFILE_SOURCE
# define _FILE_OFFSET_BITS 64
# define _LARGEFILE_SOURCE
# define _LARGEFILE64_SOURCE 1
#endif
/* HPUX needs these too... */
#ifndef __STDC_EXT__
# define __STDC_EXT__
#endif /* !__STDC_EXT__ */
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
/* Here's the actual test: */
int accept(int, struct sockaddr *, size_t *);
], [
/* EMPTY */
], pike_cv_type_accept=size_t, pike_cv_type_accept=int)
])
AC_MSG_RESULT($pike_cv_type_accept)
AC_DEFINE_UNQUOTED(PIKE_ACCEPT_TYPE, $pike_cv_type_accept)
AC_MSG_CHECKING(if mkdir takes 1 or 2 arguments)
AC_CACHE_VAL(pike_cv_func_mkdir_args,[
AC_TRY_COMPILE([
...
...
@@ -28,7 +58,9 @@ AC_TRY_COMPILE([
#endif /* !__STDC_EXT__ */
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_DIRECT_H
#include <direct.h>
#endif
...
...
@@ -606,7 +638,9 @@ AC_TRY_RUN([
#include <sys/wait.h>
#include <netinet/in.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/time.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
...
...
@@ -816,7 +850,9 @@ AC_TRY_RUN([
#ifndef POSIX_SOURCE
#define POSIX_SOURCE
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <signal.h>
int sig_child(int arg)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment