PERFORCE change 155383 for review

Robert Watson rwatson at FreeBSD.org
Sun Dec 28 08:00:50 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=155383

Change 155383 by rwatson at rwatson_lethe on 2008/12/28 16:00:31

	Prefer _GNU_SOURCE to _XOPEN_SOURCE since that has fewer side
	effects.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#31 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#31 (text+ko) ====

@@ -26,7 +26,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#30 $
+ * $P4: //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#31 $
  */
 
 /* 
@@ -40,9 +40,10 @@
  * XXX the records present within the file and between the files themselves
  */ 
 
-#define	_XOPEN_SOURCE		/* glibc 2 */
+#include <config/config.h>
+
+#define	_GNU_SOURCE		/* Required for strptime() on glibc2. */
 
-#include <config/config.h>
 #ifdef HAVE_FULL_QUEUE_H
 #include <sys/queue.h>
 #else


More information about the p4-projects mailing list