diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-10-21 01:03:48 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-10-21 01:03:48 +0000 |
commit | e925843f90521a5b48b24350f1b0c0f2a7987d42 (patch) | |
tree | 4133db7215c04004ac5367862841b6bcfa8feccf /gtk | |
parent | 0c83f1655a15fb64ff3e56231c09eeca382e793d (diff) |
Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3161 :
Solaris doesn't like _XOPEN_SOURCE being defined but with no value, at least
when being compiled in C99-mode. So set it to 600 (XPG6); hopefully this
won't break any other systems.
svn path=/trunk/; revision=39501
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/text_import.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/text_import.c b/gtk/text_import.c index 69b67dd829..5c032739e7 100644 --- a/gtk/text_import.c +++ b/gtk/text_import.c @@ -88,7 +88,7 @@ # define __USE_XOPEN #endif #ifndef _XOPEN_SOURCE -# define _XOPEN_SOURCE +# define _XOPEN_SOURCE 600 #endif /* @@ -435,7 +435,7 @@ write_current_packet (void) /* Write UDP header */ if (hdr_udp) { vec_t cksum_vector[3]; - + HDR_UDP.source_port = g_htons(hdr_src_port); HDR_UDP.dest_port = g_htons(hdr_dest_port); HDR_UDP.length = g_htons(proto_length); @@ -453,7 +453,7 @@ write_current_packet (void) /* Write TCP header */ if (hdr_tcp) { vec_t cksum_vector[3]; - + HDR_TCP.source_port = g_htons(hdr_src_port); HDR_TCP.dest_port = g_htons(hdr_dest_port); /* HDR_TCP.seq_num already correct */ @@ -518,7 +518,7 @@ write_current_packet (void) /* Write the packet */ struct wtap_pkthdr pkthdr; int err; - + pkthdr.ts.secs = (guint32)ts_sec; pkthdr.ts.nsecs = ts_usec * 1000; if (ts_fmt == NULL) { ts_usec++; } /* fake packet counter */ @@ -865,7 +865,7 @@ text_import_setup(text_import_info_t *info) fprintf(stderr, "FATAL ERROR: no memory for packet buffer"); exit(-1); } - + /* Lets start from the beginning */ state = INIT; curr_offset = 0; |