]> granicus.if.org Git - php/commitdiff
Tweak style and grammar in proc_open.c
authorAlex Dowad <alexinbeijing@gmail.com>
Tue, 26 May 2020 13:37:09 +0000 (15:37 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Wed, 27 May 2020 07:05:31 +0000 (09:05 +0200)
ext/standard/proc_open.c

index e4a38851e0a105aa59b2782553e6edf42b8f25d4..1df6246d38a1f75e4b8923238124bd49395667a5 100644 (file)
 /* This symbol is defined in ext/standard/config.m4.
  * Essentially, it is set if you HAVE_FORK || PHP_WIN32
  * Other platforms may modify that configure check and add suitable #ifdefs
- * around the alternate code.
- * */
+ * around the alternate code. */
 #ifdef PHP_CAN_SUPPORT_PROC_OPEN
 
 #if HAVE_OPENPTY
 # if HAVE_PTY_H
 #  include <pty.h>
-# else
-#  if defined(__FreeBSD__)
+# elif defined(__FreeBSD__)
 /* FreeBSD defines `openpty` in <libutil.h> */
-#    include <libutil.h>
-#  else
-/* Mac OS X and some BSD defines `openpty` in <util.h> */
-#    include <util.h>
-#  endif
+#  include <libutil.h>
+# else
+/* Mac OS X (and some BSDs) define `openpty` in <util.h> */
+#  include <util.h>
 # endif
 #endif