Subject: Re: another wm/awesome patch
To: Jeremy C. Reed <reed@reedmedia.net>
From: Justin C. Sherrill <justin@shiningsilence.com>
List: tech-pkg
Date: 11/16/2007 16:36:35
On Wed, November 14, 2007 7:51 pm, Jeremy C. Reed wrote:
> On Wed, 14 Nov 2007, Justin C. Sherrill wrote:
>
>> In file included from ./tag.h:25,
>>                  from layouts/floating.c:22:
>> /usr/include/regex.h:47: error: syntax error before "regoff_t"
>> /usr/include/regex.h:51: error: syntax error before "size_t"
>> /usr/include/regex.h:57: error: syntax error before "regoff_t"
>> /usr/include/regex.h:101: error: syntax error before "regerror"
>> /usr/include/regex.h:101: error: syntax error before "size_t"
>> /usr/include/regex.h:103: error: syntax error before "size_t"
>> *** Error code 1
>
> Maybe that tag.h or layouts/floating.c need to include stdio.h or
> sys/types.h.
>
> Also the DragonFly regex(3) man page says:
>
>      #include <sys/types.h>
>      #include <regex.h>

That was exactly the fix; it now compiles.

--- tag-old.h   2007-11-16 16:35:20.000000000 -0500
+++ tag.h       2007-11-16 16:34:13.000000000 -0500
@@ -22,6 +22,7 @@
 #ifndef AWESOME_TAG_H
 #define AWESOME_TAG_H

+#include <sys/types.h>
 #include <regex.h>
 #include "client.h"