--- strace.c
+++ strace.c
@@ -1259,7 +1259,11 @@
 			if (!NOMMU_SYSTEM) {
 				/* Wait until child stopped itself */
 				int status;
+#ifdef WSTOPPED
 				while (waitpid(pid, &status, WSTOPPED) < 0) {
+#else
+				while (waitpid(pid, &status, WUNTRACED) < 0) {
+#endif
 					if (errno == EINTR)
 						continue;
 					perror_msg_and_die("waitpid");
