tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* Mac OS X patch
@ 2015-07-24  9:08 Kristaps Dzonsons
  2015-07-24  9:44 ` Anthony J. Bentley
  0 siblings, 1 reply; 3+ messages in thread
From: Kristaps Dzonsons @ 2015-07-24  9:08 UTC (permalink / raw)
  To: tech

[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

Enclosed is a one-liner unbreaking the Mac OS X build and possibly
other systems as well.

(I recall that <stdint.h> is required for uint32_t according to C99.)

Best,

Kristaps
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJVsgCGAAoJEMT2SUY9XBESQW8P/1kgcLHluh+hR1goG4kqrGTq
iO6gViXIc76JTsozj7uWI7fsTpl0koAOWcbNh/HPoX2gZuAuKp5L83mJ2DqCjQvr
KOBxQ0rezeSi1cWywJUpY14pr1fswvmZOzNiRXKL6NyVpSod9dAv1dygBMeGyMnw
jDLSyYSiFu5rmhvyBDyExg5U977aekFYn/pwBwQgMILZuBCSuWw20CMqlx3H7mmX
7lEL5ckEzVBxntrYcin17lyA6GPTXUgn/nREefMR4qPYaDtNn7WAdzzW+d0Xmv1N
O2TvPqSM3bHz4gcKIjaDqXunq3uCxYuBjR1IeEQjtPRzQ0o5vfmJGo2x0yoX/lNQ
9VIKrERoGbLSEnWWXF4yUsS3UxBy2W4XieL+5YWLqx1XvDMi13PZH0hP07QgdP4f
x8yVCES3br+yQMusNb8w0qFE1mRPrZ0IlvSW2bY11jqxMrJRFoSB718+QSFIYQXj
lLLj25bVN5TLEkWPkqlf56tdpRSf/T+gB+QDF//sglajkOpXnEyEyLrIw+01YxsQ
X3lEYRoRbGZanZaQBjkh9iPp3XRBUIdSm6YpguNIftp+amLxXQjAlnrKrUjK0ifc
cST4LYV4tApKt6gYIvURXwWkfgzsNI6ih2TGv0iqjAkU/O73xJckPoOeTDfW7k6y
kgLRG20P8zmN8gbAoipp
=UiUr
-----END PGP SIGNATURE-----

[-- Attachment #2: stdint.patch --]
[-- Type: text/plain, Size: 799 bytes --]

? Makefile.local
? config.h
? config.log
? configure.local
? demandoc
? mandoc
? soelim
? stdint.patch
? test-dirent-namlen.dSYM
? test-fgetln.dSYM
? test-fts.dSYM
? test-getsubopt.dSYM
? test-isblank.dSYM
? test-mkdtemp.dSYM
? test-mmap.dSYM
? test-sqlite3.dSYM
? test-strcasestr.dSYM
? test-strlcat.dSYM
? test-strlcpy.dSYM
? test-strptime.dSYM
? test-strsep.dSYM
? test-vasprintf.dSYM
? test-wchar.dSYM
Index: tag.c
===================================================================
RCS file: /home/cvs/mdocml/mdocml/tag.c,v
retrieving revision 1.3
diff -u -p -r1.3 tag.c
--- tag.c	21 Jul 2015 03:26:22 -0000	1.3
+++ tag.c	24 Jul 2015 09:06:17 -0000
@@ -18,6 +18,7 @@
 
 #include <signal.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Mac OS X patch
  2015-07-24  9:08 Mac OS X patch Kristaps Dzonsons
@ 2015-07-24  9:44 ` Anthony J. Bentley
  2015-07-24  9:48   ` Anthony J. Bentley
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony J. Bentley @ 2015-07-24  9:44 UTC (permalink / raw)
  To: tech

Hi Kristaps,

Kristaps Dzonsons writes:
> Enclosed is a one-liner unbreaking the Mac OS X build and possibly
> other systems as well.
> 
> (I recall that <stdint.h> is required for uint32_t according to C99.)

Yes, and the ohash_interval(3) manual clearly shows that stdint.h must
be included before ohash.h.

The reason it doesn't fail on OpenBSD is that sys/types.h (incorrectly)
exposes uint32_t. That's a bit of pollution that shouldn't happen, but
as the XXX comment in the header states, "the rest of the includes are
not ready for that yet."

-- 
Anthony J. Bentley
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Mac OS X patch
  2015-07-24  9:44 ` Anthony J. Bentley
@ 2015-07-24  9:48   ` Anthony J. Bentley
  0 siblings, 0 replies; 3+ messages in thread
From: Anthony J. Bentley @ 2015-07-24  9:48 UTC (permalink / raw)
  Cc: tech

"Anthony J. Bentley" writes:
> Hi Kristaps,
> 
> Kristaps Dzonsons writes:
> > Enclosed is a one-liner unbreaking the Mac OS X build and possibly
> > other systems as well.
> > 
> > (I recall that <stdint.h> is required for uint32_t according to C99.)
> 
> Yes, and the ohash_interval(3) manual clearly shows that stdint.h must
> be included before ohash.h.
> 
> The reason it doesn't fail on OpenBSD is that sys/types.h (incorrectly)
> exposes uint32_t. That's a bit of pollution that shouldn't happen, but
> as the XXX comment in the header states, "the rest of the includes are
> not ready for that yet."

(ok bentley@)
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-24  9:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-24  9:08 Mac OS X patch Kristaps Dzonsons
2015-07-24  9:44 ` Anthony J. Bentley
2015-07-24  9:48   ` Anthony J. Bentley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).