1
0
mirror of https://github.com/simh/simh.git synced 2026-03-20 16:38:01 +00:00

Fixed build and link issues across different versions of AXP VMS.

This commit is contained in:
Mark Pizzolato
2011-04-15 10:56:22 -07:00
parent f01115606a
commit bad4e297a4
5 changed files with 16 additions and 1018 deletions

View File

@@ -39,7 +39,7 @@ $ libr/replace pcap grammar
$ cc/name=( as_is,shortened)/opt/nomember_align'opt/include=sys$disk:[] -
inet+sys$share:sys$lib_c.tlb/lib
$ libr/replace pcap inet
$ cc/name=( as_is,shortened)/opt/nomember_align'opt/include=sys$disk:[] -
$ cc/name=( as_is,shortened)/opt'opt/include=sys$disk:[] -
nametoaddr+sys$share:sys$lib_c.tlb/lib
$ libr/replace pcap nametoaddr
$ cc/name=( as_is,shortened)/opt/nomember_align'opt/include=sys$disk:[] -
@@ -57,7 +57,7 @@ $ libr/replace pcap scanner
$ cc/name=( as_is,shortened)/opt/nomember_align'opt/include=sys$disk:[] -
snprintf+sys$share:sys$lib_c.tlb/lib
$ libr/replace pcap snprintf
$ cc/name=( as_is,shortened)/opt/nomember_align'opt/include=sys$disk:[] -
$ cc/name=( as_is,shortened)/opt/nomember_alig'opt/include=sys$disk:[] -
pcap-vms+sys$share:sys$lib_c.tlb/lib
$ libr/replace pcap pcap-vms
$ exit

View File

@@ -49,6 +49,7 @@
//
// Do not align
//
#pragma member_alignment save
#pragma nomember_alignment
typedef unsigned long u_int32;
typedef struct _promisc_header {
@@ -74,4 +75,5 @@ typedef struct _packet {
unsigned char data[2048];
} packet;
#pragma member_alignment restore
#endif /* __PCAP_VMS__H */

View File

@@ -184,6 +184,11 @@
* not used;
*/
#if __CRTL_VER >= 70312000
#define HAVE_SNPRINTF
#else
#pragma message disable NOTINCRTL
#endif
/* Define HAVE_SNPRINTF if your system already has snprintf and vsnprintf.
*
@@ -280,6 +285,7 @@
/* ============================================= */
/* NO USER SERVICABLE PARTS FOLLOWING THIS POINT */
/* ============================================= */

View File

@@ -4,6 +4,12 @@
#define PORTABLE_SNPRINTF_VERSION_MAJOR 2
#define PORTABLE_SNPRINTF_VERSION_MINOR 2
#if __CRTL_VER >= 70312000
#define HAVE_SNPRINTF
#else
#pragma message disable NOTINCRTL
#endif
#ifdef HAVE_SNPRINTF
#include <stdio.h>
#else

File diff suppressed because it is too large Load Diff