This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Avoid potentially empty struct.
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 14 May 2002 03:14:10 +0000 (03:14 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 14 May 2002 03:14:10 +0000 (03:14 +0000)
p4raw-id: //depot/perl@16588

reentr.h
reentr.pl

index fa93b68..d72647b 100644 (file)
--- a/reentr.h
+++ b/reentr.h
@@ -743,6 +743,7 @@ typedef struct {
        size_t  _ttyname_size;
 #endif /* HAS_TTYNAME_R */
 
        size_t  _ttyname_size;
 #endif /* HAS_TTYNAME_R */
 
+    int dummy; /* just in case */
 } REENTR;
 
 /* The wrappers. */
 } REENTR;
 
 /* The wrappers. */
index 5494f78..e8f2544 100644 (file)
--- a/reentr.pl
+++ b/reentr.pl
@@ -668,6 +668,7 @@ print <<EOF;
 @define
 typedef struct {
 @struct
 @define
 typedef struct {
 @struct
+    int dummy; /* just in case */
 } REENTR;
 
 /* The wrappers. */
 } REENTR;
 
 /* The wrappers. */