Browse Source

math.h: fix trivial typo (missing !): !defined __NO_LONG_DOUBLE_MATH

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko 14 years ago
parent
commit
daaee1de18
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/math.h
  2. 1 1
      libc/misc/syslog/syslog.c

+ 1 - 1
include/math.h

@@ -135,7 +135,7 @@ __BEGIN_DECLS
 
 
 # if (defined __STDC__ || defined __GNUC__) \
-     && (defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT)
+     && (!defined __NO_LONG_DOUBLE_MATH || defined __LDBL_COMPAT)
 #  ifdef __LDBL_COMPAT
 
 #   ifdef __USE_ISOC99

+ 1 - 1
libc/misc/syslog/syslog.c

@@ -164,7 +164,7 @@ retry:
 			if ((LogFile = socket(AF_UNIX, logType, 0)) == -1) {
 				goto DONE;
 			}
-			fcntl(LogFile, F_SETFD, 1); /* 1 == FD_CLOEXEC */
+			fcntl(LogFile, F_SETFD, FD_CLOEXEC);
 			/* We don't want to block if e.g. syslogd is SIGSTOPed */
 			fcntl(LogFile, F_SETFL, O_NONBLOCK | fcntl(LogFile, F_GETFL));
 		}