Skip to content

Commit 6b10d29

Browse files
committed
Remove NextStep support
Because of that we can remove OPENSSL_UNISTD and some other macros from e_os2.h and opensslconf.h Reviewed-by: Tim Hudson <[email protected]> Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#9204)
1 parent 19ea6b2 commit 6b10d29

File tree

14 files changed

+12
-58
lines changed

14 files changed

+12
-58
lines changed

CHANGES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
Changes between 1.1.1 and 3.0.0 [xx XXX xxxx]
1111

12+
*) Removed NextStep support and the macro OPENSSL_UNISTD
13+
[Rich Salz]
14+
1215
*) RC5_32_set_key has been changed to return an int type, with 0 indicating
1316
an error and 1 indicating success. In previous versions of OpenSSL this
1417
was a void type. If a key was set longer than the maximum possible this

Configurations/10-main.conf

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,23 +1051,6 @@ my %targets = (
10511051
shared_cflag => "-fPIC",
10521052
},
10531053

1054-
"nextstep" => {
1055-
inherit_from => [ "BASE_unix" ],
1056-
CC => "cc",
1057-
CFLAGS => "-O -Wall",
1058-
unistd => "<libc.h>",
1059-
bn_ops => "BN_LLONG",
1060-
thread_scheme => "(unknown)",
1061-
},
1062-
"nextstep3.3" => {
1063-
inherit_from => [ "BASE_unix" ],
1064-
CC => "cc",
1065-
CFLAGS => "-O3 -Wall",
1066-
unistd => "<libc.h>",
1067-
bn_ops => "BN_LLONG",
1068-
thread_scheme => "(unknown)",
1069-
},
1070-
10711054
#### SCO/Caldera targets.
10721055
#
10731056
# Originally we had like unixware-*, unixware-*-pentium, unixware-*-p6, etc.

Configure

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3314,7 +3314,6 @@ sub print_table_entry
33143314
"includes",
33153315
"cc",
33163316
"cflags",
3317-
"unistd",
33183317
"ld",
33193318
"lflags",
33203319
"loutflag",

apps/opt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "internal/nelem.h"
1616
#include <string.h>
1717
#if !defined(OPENSSL_SYS_MSDOS)
18-
# include OPENSSL_UNISTD
18+
# include <unistd.h>
1919
#endif
2020

2121
#include <stdlib.h>

apps/s_time.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <openssl/err.h>
2525
#include <internal/sockets.h>
2626
#if !defined(OPENSSL_SYS_MSDOS)
27-
# include OPENSSL_UNISTD
27+
# include <unistd.h>
2828
#endif
2929

3030
#define SSL_CONNECT_NAME "localhost:4433"

apps/speed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include <openssl/objects.h>
3030
#include <openssl/async.h>
3131
#if !defined(OPENSSL_SYS_MSDOS)
32-
# include OPENSSL_UNISTD
32+
# include <unistd.h>
3333
#endif
3434

3535
#if defined(_WIN32)

config

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -349,17 +349,6 @@ if [ -d /usr/apollo ]; then
349349
exit 0
350350
fi
351351

352-
# Now NeXT
353-
ISNEXT=`hostinfo 2>/dev/null`
354-
case "$ISNEXT" in
355-
*'NeXT Mach 3.3'*)
356-
echo "whatever-next-nextstep3.3"; exit 0
357-
;;
358-
*NeXT*)
359-
echo "whatever-next-nextstep"; exit 0
360-
;;
361-
esac
362-
363352
# At this point we gone through all the one's
364353
# we know of: Punt
365354

crypto/rand/rand_egd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ int RAND_egd_bytes(const char *path, int bytes)
3838

3939
# else
4040

41-
# include OPENSSL_UNISTD
41+
# include <unistd.h>
4242
# include <stddef.h>
4343
# include <sys/types.h>
4444
# include <sys/socket.h>

crypto/ui/ui_openssl.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@
3434
# include <errno.h>
3535

3636
# if !defined(OPENSSL_SYS_MSDOS) && !defined(OPENSSL_SYS_VMS)
37-
# ifdef OPENSSL_UNISTD
38-
# include OPENSSL_UNISTD
39-
# else
40-
# include <unistd.h>
41-
# endif
37+
# include <unistd.h>
4238
/*
4339
* If unistd.h defines _POSIX_VERSION, we conclude that we are on a POSIX
4440
* system and have sigaction and termios.

crypto/uid.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ int OPENSSL_issetugid(void)
1919

2020
#elif defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ > 2) || defined(__DragonFly__)
2121

22-
# include OPENSSL_UNISTD
22+
# include <unistd.h>
2323

2424
int OPENSSL_issetugid(void)
2525
{
@@ -28,7 +28,7 @@ int OPENSSL_issetugid(void)
2828

2929
#else
3030

31-
# include OPENSSL_UNISTD
31+
# include <unistd.h>
3232
# include <sys/types.h>
3333

3434
# if defined(__GLIBC__) && defined(__GLIBC_PREREQ)

e_os.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,11 +257,7 @@ extern FILE *_imp___iob;
257257

258258
# else
259259
/* !defined VMS */
260-
# ifdef OPENSSL_UNISTD
261-
# include OPENSSL_UNISTD
262-
# else
263-
# include <unistd.h>
264-
# endif
260+
# include <unistd.h>
265261
# include <sys/types.h>
266262
# ifdef OPENSSL_SYS_WIN32_CYGWIN
267263
# include <io.h>

include/openssl/e_os2.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,6 @@ extern "C" {
136136
* That's it for OS-specific stuff
137137
*****************************************************************************/
138138

139-
/* Specials for I/O an exit */
140-
# ifdef OPENSSL_SYS_MSDOS
141-
# define OPENSSL_UNISTD_IO <io.h>
142-
# define OPENSSL_DECLARE_EXIT extern void exit(int);
143-
# else
144-
# define OPENSSL_UNISTD_IO OPENSSL_UNISTD
145-
# define OPENSSL_DECLARE_EXIT /* declared in unistd.h */
146-
# endif
147-
148139
/*-
149140
* OPENSSL_EXTERN is normally used to declare a symbol with possible extra
150141
* attributes to handle its presence in a shared library.

include/openssl/opensslconf.h.in

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ extern "C" {
165165
/* Generate 80386 code? */
166166
{- $config{processor} eq "386" ? "# define" : "# undef" -} I386_ONLY
167167

168-
# undef OPENSSL_UNISTD
169-
# define OPENSSL_UNISTD {- $target{unistd} -}
170-
171168
{- $config{export_var_as_fn} ? "# define" : "# undef" -} OPENSSL_EXPORT_VAR_AS_FUNCTION
172169

173170
/*

test/ssltest_old.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#ifdef OPENSSL_SYS_WINDOWS
7272
# include <winsock.h>
7373
#else
74-
# include OPENSSL_UNISTD
74+
# include <unistd.h>
7575
#endif
7676

7777
static SSL_CTX *s_ctx = NULL;

0 commit comments

Comments
 (0)