Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
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
The Tor Project
Core
Tor
Commits
52675184
Commit
52675184
authored
21 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
autoconf around missing stdint.h
svn:r376
parent
681c7539
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
configure.in
+10
-0
10 additions, 0 deletions
configure.in
src/common/aes.c
+0
-1
0 additions, 1 deletion
src/common/aes.c
src/common/aes.h
+1
-1
1 addition, 1 deletion
src/common/aes.h
src/common/torint.h
+55
-0
55 additions, 0 deletions
src/common/torint.h
src/or/or.h
+1
-3
1 addition, 3 deletions
src/or/or.h
with
67 additions
and
5 deletions
configure.in
+
10
−
0
View file @
52675184
...
...
@@ -135,5 +135,15 @@ dnl The warning message here is no longer strictly accurate.
AC_CHECK_HEADERS(unistd.h string.h signal.h netdb.h ctype.h poll.h sys/poll.h sys/types.h sys/fcntl.h sys/ioctl.h sys/socket.h sys/time.h netinet/in.h arpa/inet.h errno.h assert.h stdint.h, , AC_MSG_WARN(some headers were not found, compilation may fail))
dnl In case we aren't given a working stdint.h, we'll need to grow our own.
dnl Watch out.
AC_CHECK_SIZEOF(char)
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
AC_CHECK_SIZEOF(__int64)
AC_OUTPUT(Makefile src/Makefile src/common/Makefile src/orkeygen/Makefile src/or/Makefile)
This diff is collapsed.
Click to expand it.
src/common/aes.c
+
0
−
1
View file @
52675184
...
...
@@ -10,7 +10,6 @@
#include
<assert.h>
#include
<stdlib.h>
#include
<string.h>
#include
<stdint.h>
#include
"../../orconfig.h"
#include
"./aes.h"
#include
"util.h"
...
...
This diff is collapsed.
Click to expand it.
src/common/aes.h
+
1
−
1
View file @
52675184
...
...
@@ -7,7 +7,7 @@
#ifndef __AES_H
#define __AES_H
#include
<std
int.h
>
#include
"../common/tor
int.h
"
struct
aes_cnt_cipher
;
typedef
struct
aes_cnt_cipher
aes_cnt_cipher_t
;
...
...
This diff is collapsed.
Click to expand it.
src/common/torint.h
0 → 100644
+
55
−
0
View file @
52675184
/* Copyright 2003 Roger Dingledine */
/* See LICENSE for licensing information */
/* $Id$ */
#ifndef __TORINT_H
#define __TORINT_H
#ifdef HAVE_STDINT_H
#include
<stdint.h>
#else
#if (SIZEOF_CHAR == 1)
typedef
unsigned
char
uint8_t
;
typedef
signed
char
int8_t
;
#else
#error "sizeof(char) != 1"
#endif
#if (SIZEOF_SHORT == 2)
typedef
unsigned
short
uint16_t
;
typedef
signed
short
int16_t
;
#elif (SIZEOF_INT == 2)
typedef
unsigned
int
uint16_t
;
typedef
signed
int
int16_t
;
#else
#error "sizeof(short) != 2 && sizeof(int) != 2"
#endif
#if (SIZEOF_INT == 4)
typedef
unsigned
int
uint32_t
;
typedef
signed
int
int32_t
;
#elif (SIZEOF_LONG == 4)
typedef
unsigned
long
uint32_t
;
typedef
signed
long
int32_t
;
#else
#error "sizeof(int) != 4 && sizeof(long) != 4"
#endif
#if (SIZEOF_LONG == 8)
typedef
unsigned
long
uint64_t
;
typedef
signed
long
int64_t
;
#elif (SIZEOF_LONG_LONG == 8)
typedef
unsigned
long
long
uint64_t
;
typedef
signed
long
long
int64_t
;
#elif (SIZEOF___INT64 == 8)
typedef
unsigned
__int64
uint64_t
;
typedef
signed
__int64
int64_t
;
#else
#error "sizeof(long) != 8 && sizeof(long long) != 8 && sizeof(__int64) != 8"
#endif
#endif
/* HAVE_STDINT_H */
#endif
/* __TORINT_H */
This diff is collapsed.
Click to expand it.
src/or/or.h
+
1
−
3
View file @
52675184
...
...
@@ -15,9 +15,7 @@
#include
<signal.h>
#include
<netdb.h>
#include
<ctype.h>
#ifdef HAVE_STDINT_H
#include
<stdint.h>
#endif
#include
"../common/torint.h"
#ifdef HAVE_SYS_POLL_H
#include
<sys/poll.h>
#elif HAVE_POLL_H
...
...
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