summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2006-03-16 01:00:43 +0000
committersabetts <sabetts>2006-03-16 01:00:43 +0000
commit73a3c5a465dbe5df9bed5f163d2c105065b861f2 (patch)
tree375b085a935bc6d6d467e0d4f2e48a2b6807fc1a /src/window.c
parent9cb1a3d51b8cba35ef443c64b5b1d99fa8d33ae6 (diff)
downloadratpoison-73a3c5a465dbe5df9bed5f163d2c105065b861f2.zip
* src/window.c (_XOPEN_SOURCE): new define
* src/screen.c (is_a_root_window): w is unsigned int (init_screen): typecast _net_wm_pid as unsigned char*. * src/main.c (read_rc_file): linesize is size_t * src/frame.c (frame_read): use a temp var when reading the :dedicated value. * src/bar.c (max_line_length): i and start are size_t (draw_string): i is size_t (get_mark_box): mark_start and mark_end are size_t * src/actions.c (find_keybinding): state is unsigned int (remove_keybinding): likewise (frame_selector): n is unsigned int (frame_selector_match): i is size_t. typecast comparison as size_t.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index e3a1e89..b665f71 100644
--- a/src/window.c
+++ b/src/window.c
@@ -19,6 +19,11 @@
* Boston, MA 02111-1307 USA
*/
+/* Citing getsid(2) here:
+ To get the prototype under glibc, define both _XOPEN_SOURCE and
+ _XOPEN_SOURCE_EXTENDED, or use "#define _XOPEN_SOURCE n" for some
+ integer n larger than or equal to 500. */
+#define _XOPEN_SOURCE 500
#include <unistd.h> /* for getsid */
#include <stdio.h>
#include <stdlib.h>