diff -Naur ofono-1.10.orig/plugins/gobi.c ofono-1.10/plugins/gobi.c
--- ofono-1.10.orig/plugins/gobi.c	2012-08-13 11:48:23.000000000 -0400
+++ ofono-1.10/plugins/gobi.c	2012-08-13 11:51:07.000000000 -0400
@@ -310,6 +310,10 @@
 	if (!device)
 		return -EINVAL;
 
+#ifndef O_CLOEXEC
+# define O_CLOEXEC     02000000
+#endif
+
 	fd = open(device, O_RDWR | O_NONBLOCK | O_CLOEXEC);
 	if (fd < 0)
 		return -EIO;
