Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tor
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin J. Thompson
Tor
Commits
a68fcbf8
Commit
a68fcbf8
authored
20 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
Initial IRIX compatibility fixes: check for inttypes.h; check for platform cell_t.
svn:r3648
parent
c2d5b67d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure.in
+6
-1
6 additions, 1 deletion
configure.in
src/common/torint.h
+3
-0
3 additions, 0 deletions
src/common/torint.h
src/or/or.h
+6
-0
6 additions, 0 deletions
src/or/or.h
with
15 additions
and
1 deletion
configure.in
+
6
−
1
View file @
a68fcbf8
...
...
@@ -149,13 +149,14 @@ AC_CHECK_HEADERS(zlib.h, , AC_MSG_ERROR(Zlib header (zlib.h) not found. Tor requ
dnl These headers are not essential
AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h pthread.h stddef.h)
AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h pthread.h stddef.h
inttypes.h
)
AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit setrlimit strlcat strlcpy strtoull getpwnam ftello pthread_create gethostbyname_r getaddrinfo)
AC_FUNC_FSEEKO
AC_CHECK_MEMBERS([struct timeval.tv_sec])
dnl In case we aren't given a working stdint.h, we'll need to grow our own.
dnl Watch out.
...
...
@@ -180,6 +181,10 @@ AC_CHECK_SIZEOF(long long)
AC_CHECK_SIZEOF(__int64)
AC_CHECK_SIZEOF(void *)
# We want to make sure that we _don't_ have a cell_t defined, like IRIX does.
AC_CHECK_SIZEOF(cell_t)
# Now, let's see about alignment requirements. On some platforms, we override
# the default.
case $host in
...
...
This diff is collapsed.
Click to expand it.
src/common/torint.h
+
3
−
0
View file @
a68fcbf8
...
...
@@ -33,6 +33,9 @@
#include
<machine/limits.h>
#endif
#endif
#ifdef HAVE_INTTYPES_H
#include
<inttypes.h>
#endif
#if (SIZEOF_INT8_T != 0)
#define HAVE_INT8_T
...
...
This diff is collapsed.
Click to expand it.
src/or/or.h
+
6
−
0
View file @
a68fcbf8
...
...
@@ -128,6 +128,12 @@
#include
"../common/util.h"
#include
"../common/torgzip.h"
#if (SIZEOF_CELL_T != 0)
/* On Irix, stdlib.h defines a cell_t type, so we need to make sure
* that our stuff always calls cell_t something different. */
#define cell_t tor_cell_t
#endif
/** Define this if you want Tor to crash when any problem comes up,
* so you can get a coredump and track things down. */
#undef TOR_FRAGILE
...
...
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