diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index aa6e2530e1ec62853844ec70be95d6652319cdf5..68debcb28fa4c46eb2b75b0ec262958299eda960 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -682,7 +682,7 @@ static int unix_set_peek_off(struct sock *sk, int val)
 	return 0;
 }
 
-#ifdef CONFIG_PROCFS
+#ifdef CONFIG_PROC_FS
 static void unix_show_fdinfo(struct seq_file *m, struct socket *sock)
 {
 	struct sock *sk = sock->sk;