PERFORCE change 127758 for review

John Birrell jb at FreeBSD.org
Fri Oct 19 03:16:41 PDT 2007


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

Change 127758 by jb at jb_freebsd1 on 2007/10/19 10:15:53

	Add some Solaris compatibility definitions.

Affected files ...

.. //depot/projects/dtrace/src/include/stdlib.h#7 edit
.. //depot/projects/dtrace/src/include/strings.h#4 edit

Differences ...

==== //depot/projects/dtrace/src/include/stdlib.h#7 (text+ko) ====

@@ -282,6 +282,10 @@
 
 extern char *suboptarg;			/* getsubopt(3) external variable */
 #endif /* __BSD_VISIBLE */
+
+#ifdef _SOLARIS_C_SOURCE
+#define	getexecname	getprogname
+#endif
 __END_DECLS
 
 #endif /* !_STDLIB_H_ */

==== //depot/projects/dtrace/src/include/strings.h#4 (text+ko) ====

@@ -53,4 +53,8 @@
 int	 strncasecmp(const char *, const char *, size_t) __pure;
 __END_DECLS
 
+#ifdef _SOLARIS_C_SOURCE
+#include <string.h>
+#endif
+
 #endif /* _STRINGS_H_ */


More information about the p4-projects mailing list