]> git.refcnt.org Git - colorize.git/blobdiff - colorize.c
Define _DEFAULT_SOURCE
[colorize.git] / colorize.c
index 7faeb8008392459b9d32381445212854d2b2a2fa..60a979418543f5bd6eb7b5db7cf15efb690c7b18 100644 (file)
@@ -19,6 +19,7 @@
  *
  */
 
+#define _DEFAULT_SOURCE
 #define _BSD_SOURCE
 #define _XOPEN_SOURCE 700
 #define _FILE_OFFSET_BITS 64
@@ -785,7 +786,7 @@ read_print_stream (bool bold, const struct color **colors, const char *file, FIL
         line = buf;
         while ((eol = strpbrk (line, "\n\r")))
           {
-            char *p;
+            const char *p;
             flags &= ~(CR|LF);
             if (*eol == '\r')
               {